/* assets/css/register.css */
/* Professional Redesign for Registration Page */

/* 1. Core Styles & Layout
-------------------------------------------------- */
:root {
    --primary-color: #4a90e2;
    --primary-hover: #357abd;
    --background-light: #f7f9fc;
    --background-white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #8fa4b8;
    --border-color: #e6eaf0;
    --error-text: #c62828;
    --success-text: #2e7d32;
    --font-family: 'Inter', sans-serif;
}

/*
REMOVED: The rules that were hiding the header and footer.
body > .site-header,
body > .site-footer {
    display: none;
}
*/

body, html {
    /* The height: 100% and overflow: hidden are removed to allow the page to scroll naturally with the header and footer. */
    background-color: var(--background-light);
    font-family: var(--font-family);
}

.register-wrapper {
    display: flex;
    width: 100%;
    /* min-height is used to ensure the content can push the footer down */
    min-height: calc(100vh - var(--header-height, 70px) - 100px); /* Adjust 100px based on your footer height */
    padding: 2rem 0;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 2. Art & Animation Column (Left)
-------------------------------------------------- */
.register-art-column {
    flex: 1;
    position: relative;
    background: linear-gradient(45deg, #50e3c2, #4a90e2);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    margin-right: 1.25rem;
}

#3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.art-overlay {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    max-width: 80%;
}

.art-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.art-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* 3. Form Column (Right)
-------------------------------------------------- */
.register-form-column {
    flex: 1.2; /* Give slightly more space to the form */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.25rem;
}

.form-container {
    width: 100%;
    max-width: 550px;
}

.form-card {
    background-color: var(--background-white);
    padding: 2.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.1);
    border: 1px solid var(--border-color);
}

.form-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-intro a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.form-intro a:hover {
    text-decoration: underline;
}

/* 4. Progress Bar
-------------------------------------------------- */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-light);
    display: grid;
    place-items: center;
    font-weight: 700;
    transition: all 0.4s ease;
    border: 3px solid var(--border-color);
}
.step-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.4s ease;
}
.progress-step.active .step-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.progress-step.active .step-label {
    color: var(--primary-color);
}
.progress-line {
    flex-grow: 1;
    height: 3px;
    background-color: var(--border-color);
    margin: 0 -10px;
    transform: translateY(-12px);
}

/* 5. Form Steps & Inputs
-------------------------------------------------- */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.input-group input, .input-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #f7f9fc;
    transition: all 0.2s ease-in-out;
}
.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    background-color: var(--background-white);
}
.input-row {
    display: flex;
    gap: 1.5rem;
}
.input-row .input-group {
    flex: 1;
}
.error-text {
    color: var(--error-text);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkbox-group input {
    width: auto;
}
.checkbox-group label {
    margin-bottom: 0;
    color: var(--text-dark);
    font-weight: 500;
}
.summary-box {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

/* 6. Form Navigation
-------------------------------------------------- */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}
.btn-nav, .btn-submit {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.btn-prev {
    background-color: var(--border-color);
    color: var(--text-dark);
}
.btn-prev:hover {
    background-color: #dce1e8;
}
.btn-next, .btn-submit {
    background-color: var(--primary-color);
    color: white;
}
.btn-next:hover, .btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* 7. Success State
-------------------------------------------------- */
.success-state { text-align: center; padding: 3rem; }
.success-icon { color: var(--success-text); margin-bottom: 1rem; }
.success-state .btn-submit {
    margin-top: 1.5rem;
    background-color: var(--success-text);
}
.success-state .btn-submit:hover {
    background-color: #1b5e20;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* 8. Responsive Design
-------------------------------------------------- */
@media (max-width: 992px) {
    .register-wrapper { flex-direction: column; }
    .register-art-column { display: none; }
    .register-form-column {
        flex-grow: 1;
        align-items: flex-start;
        padding: 2rem 1rem;
    }
    .form-card {
        padding: 1.5rem;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background-color: transparent;
    }
}
@media (max-width: 768px) {
    .input-row { flex-direction: column; gap: 0; }
}
