.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    min-height: calc(100vh - 200px);
}

.auth-box {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
}

.auth-title {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.validation-message {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.remember-me-label {
    display: inline;
    color: var(--secondary-color);
    font-weight: 500;
    margin-left: 0.5rem;
    cursor: pointer;
}

.validation-summary {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #e74c3c;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.submit-button:hover {
    background-color: var(--hover-color);
}

/* Student login redirect styles */
.student-redirect-notice {
    background-color: #e8f4fd;
    border: 1px solid #3498db;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    text-align: center;
}

.student-login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.student-login-link:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e8f0;
}

.forgot-password-section {
    margin-bottom: 0.75rem;
}

.user-type-section {
    margin-top: 0.75rem;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.login-footer .student-login-link {
    font-size: 0.9rem;
    color: #666;
}

.login-footer .student-login-link:hover {
    color: var(--primary-color);
}

/* Button-style links for auth pages */
.submit-button-link {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.submit-button-link:hover {
    background-color: var(--hover-color);
    color: white;
    text-decoration: none;
}

.submit-button-link.success {
    background-color: #28a745;
}

.submit-button-link.success:hover {
    background-color: #218838;
}

.flex-button-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.flex-button-container .submit-button-link {
    flex: 1;
}

/* Password input with toggle button */
.password-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.password-input-group .form-input {
    border-radius: 6px 0 0 6px !important;
    border-right: none;
    flex: 1;
}

.password-toggle-btn {
    background-color: #f8f9fa;
    border: 1px solid #e1e8f0;
    border-left: none;
    border-radius: 0 6px 6px 0;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #6c757d;
    transition: background-color 0.2s, color 0.2s;
}

.password-toggle-btn:hover {
    background-color: #e9ecef;
    color: var(--secondary-color);
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.password-requirements {
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.password-requirements i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .registration-container {
        padding: 1.5rem;
    }
    
    .registration-box {
        padding: 1.5rem;
    }
}