:root {
    --primary-blue: #1865f2;
    --secondary-blue: #0a2a66;
    --success-green: #00a60e;
    --background-gray: #f7f8fa;
    --border-color: #e8e8e8;
    --text-primary: #21242c;
    --text-secondary: #6b7f99;
}

.signup-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--background-gray);
    padding-top: 60px;
}

.signup-left {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-image: url('../images/openart-image_6c2-Ytkn_1736596625937_raw.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    overflow: hidden;
}

.signup-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.signup-left h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.signup-left p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin: 0 auto;
}

.signup-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.signup-box {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 480px;
}

.signup-box h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.signup-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.signup-role-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.role-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-btn.active {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: rgba(24, 101, 242, 0.1);
}

.birthdate-inputs {
    display: flex;
    gap: 1rem;
}

.birthdate-inputs select {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.birthdate-inputs select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 101, 242, 0.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 101, 242, 0.1);
}

#class-code {
    background-color: var(--background-gray);
    border: 1px dashed var(--border-color);
}

.terms {
    margin-top: 1rem;
}

.terms .agreement {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terms .agreement input[type="checkbox"] {
    margin-top: 0.2rem;
}

.terms .agreement a {
    color: var(--primary-blue);
    text-decoration: none;
}

.terms .agreement a:hover {
    text-decoration: underline;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
}

.auth-divider {
    margin: 2rem 0;
    position: relative;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background-color: white;
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background-color: #f1f1f1;
}

.btn-github:hover {
    background-color: #24292e;
    color: white;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .signup-container {
        flex-direction: column;
        padding-top: 0;
    }

    .signup-left {
        min-height: 300px;
        padding: 4rem 2rem;
    }

    .signup-left h2 {
        font-size: 2rem;
    }

    .signup-left p {
        font-size: 1.1rem;
    }

    .signup-right {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .signup-left {
        min-height: 250px;
        padding: 3rem 1.5rem;
    }

    .signup-left h2 {
        font-size: 1.8rem;
    }

    .signup-left p {
        font-size: 1rem;
    }

    .signup-box {
        padding: 1.5rem;
    }

    .birthdate-inputs {
        flex-direction: column;
    }

    .role-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-box {
    animation: slideIn 0.5s ease-out forwards;
}

/* Login specific styles */
.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-apple {
    background-color: #000;
    color: white;
    border: none;
}

.btn-apple:hover {
    background-color: #333;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
}

.social-login .btn-social {
    width: 100%;
    justify-content: center;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-login .btn-google {
    border: 1px solid var(--border-color);
    background-color: white;
}

.social-login .btn-google:hover {
    background-color: #f8f9fa;
}

.social-login .btn-github {
    background-color: #24292e;
    color: white;
    border: none;
}

.social-login .btn-github:hover {
    background-color: #2f363d;
}

.social-login .btn-apple {
    background-color: #000;
    color: white;
    border: none;
}

.social-login .btn-apple:hover {
    background-color: #333;
} 