/**
 * Tutor Live Classes - Auth CSS
 * Styles for authentication pages (login, registration)
 */

/* Auth Container */
.tlc-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;

}

/* Instructor Registration - Different gradient */
body.page-template-instructor-registration .tlc-auth-container {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 550px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header h2 {
    font-size: 28px !important;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.auth-header p {
    color: #757575;
    margin: 0;
}

/* Alerts */
.alert {
    padding: 15px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.alert-error {
    background: #ffebee !important;
    color: #c62828 !important;
    border: 2px solid #ef5350 !important;
}

.alert-error a {
    color: #d32f2f !important;
    text-decoration: underline !important;
}

.alert-error a:hover {
    color: #b71c1c !important;
}

.alert-success {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 2px solid #4caf50 !important;
}

/* Auth Form */
.auth-form {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.password-field .password-wrapper {
    position: relative;
}

.password-field .password-wrapper input {
    padding-right: 45px !important;
}

.password-field .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.password-field .toggle-password:hover {
    background: rgba(91, 81, 216, 0.1);
    border-radius: 4px;
    color: #5b51d8;
}

.password-field .toggle-password .eye-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Instructor registration focus color */
body.page-template-instructor-registration .form-group input:focus,
body.page-template-instructor-registration .form-group textarea:focus {
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

/* Checkbox Group */
.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Instructor registration links */
body.page-template-instructor-registration .checkbox-group a {
    color: #f093fb;
}

/* Form Options (Login page) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Instructor registration button */
body.page-template-instructor-registration .btn-submit {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body.page-template-instructor-registration .btn-submit:hover {
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.4);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    margin: 10px 0;
    color: #757575;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Instructor registration footer links */
body.page-template-instructor-registration .auth-footer a {
    color: #f093fb;
}

/* Register Links (Login page) */
.register-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.register-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
}

.register-btn.student {
    background: #e3f2fd;
    color: #1565c0;
}

.register-btn.student:hover {
    background: #bbdefb;
}

.register-btn.instructor {
    background: #fce4ec;
    color: #c2185b;
}

.register-btn.instructor:hover {
    background: #f8bbd0;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .register-links {
        flex-direction: column;
    }
}