/* ===============================================
   Ultra-Modern Authentication Pages Styling
   =============================================== */

/* CSS Custom Properties for Dynamic Theming */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --secondary-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-focus: rgba(255, 255, 255, 1);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.15);
    --shadow-medium: 0 15px 35px rgba(31, 38, 135, 0.25);
    --shadow-heavy: 0 25px 50px rgba(31, 38, 135, 0.35);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Main Authentication Container with Dynamic Background */
.tp-login-area {
    background: var(--glass-bg);
    animation: gradientShift 15s ease infinite;
    padding: 60px 0 60px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Left Side - Illustration */
.tp-login-thumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.tp-login-thumb::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tp-login-thumb img {
    max-width: 400px;
    width: 100%;
    height: auto;
    z-index: 3;
}

/* Advanced Glassmorphism Left Panel */
.tp-login-thumb {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 3;
}

.tp-login-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: inherit;
}


/* Ultra-Modern Form Container */
.tp-login-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(200%);
    position: relative;
    z-index: 3;
}

.tp_login {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(30px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 40px;
    box-shadow:
            var(--shadow-heavy),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.tp_login:hover {
    transform: translateY(-5px);
    box-shadow:
            0 35px 70px rgba(31, 38, 135, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Dynamic Top Border with Color Shift */
.tp_login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #667eea 100%);
    background-size: 300% 100%;
    animation: colorFlow 8s ease infinite;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

@keyframes colorFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Ambient Light Effect */
.tp_login::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    animation: ambientRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes ambientRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Header */
.tp_login__title {
    text-align: center;
    margin-bottom: 32px;
}

.tp-login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
}

.alert-success {
    color: #0f5132;
    background: linear-gradient(135deg, #d1f2eb, #a7f3d0);
}

.alert-success::before {
    background: #10b981;
}

.alert-danger {
    color: #721c24;
    background: linear-gradient(135deg, #f8d7da, #fecaca);
}

.alert-danger::before {
    background: #ef4444;
}

.alert-info {
    color: #0c4a6e;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.alert-info::before {
    background: #3b82f6;
}

/* Ultra-Modern Form Fields with Floating Labels */
.tp-mail, .tp-password, .tp-name {
    margin-bottom: 28px;
    position: relative;
}

.tp-mail label, .tp-password label, .tp-name label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 0.025em;
    transition: var(--transition);
}

.tp-mail label i, .tp-password label i, .tp-name label i {
    color: #667eea;
    margin-right: 8px;
    transition: var(--transition);
}

/* Advanced Input Styling with Neumorphism */
.form-control {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid rgba(230, 230, 230, 0.8);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow:
            inset 2px 2px 5px rgba(0, 0, 0, 0.03),
            inset -2px -2px 5px rgba(255, 255, 255, 0.8),
            0 0 0 0 rgba(102, 126, 234, 0);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

/* Enhanced Focus State with Morphing Effect */
.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: linear-gradient(145deg, #ffffff, #ffffff);
    box-shadow:
            inset 1px 1px 3px rgba(102, 126, 234, 0.1),
            inset -1px -1px 3px rgba(255, 255, 255, 0.9),
            0 0 0 4px rgba(102, 126, 234, 0.15),
            0 8px 25px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px) scale(1.02);
}

/* Hover State with Subtle Animation */
.form-control:hover:not(:focus) {
    border-color: #a3a3a3;
    background: linear-gradient(145deg, #ffffff, #fafbfc);
    box-shadow:
            inset 1px 1px 4px rgba(0, 0, 0, 0.04),
            inset -1px -1px 4px rgba(255, 255, 255, 0.9),
            0 4px 15px rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

/* Error State with Pulsing Effect */
.form-control.is-invalid {
    border-color: #ef4444;
    background: linear-gradient(145deg, #fef2f2, #ffffff);
    box-shadow:
            inset 1px 1px 3px rgba(239, 68, 68, 0.1),
            inset -1px -1px 3px rgba(255, 255, 255, 0.9),
            0 0 0 4px rgba(239, 68, 68, 0.15);
    animation: errorPulse 2s ease-in-out infinite;
}

@keyframes errorPulse {
    0%, 100% { box-shadow: inset 1px 1px 3px rgba(239, 68, 68, 0.1), inset -1px -1px 3px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(239, 68, 68, 0.15); }
    50% { box-shadow: inset 1px 1px 3px rgba(239, 68, 68, 0.15), inset -1px -1px 3px rgba(255, 255, 255, 0.9), 0 0 0 6px rgba(239, 68, 68, 0.2); }
}

/* Enhanced Placeholder with Floating Effect */
.form-control::placeholder {
    color: #a0a0a0;
    font-weight: 400;
    transition: var(--transition);
}

.form-control:focus::placeholder {
    color: transparent;
    transform: translateY(-20px);
}

/* Input Field Animation Container */
.input-container {
    position: relative;
}

.input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.02), transparent);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.input-container:hover::before {
    opacity: 1;
}

/* Success State for Valid Inputs */
.form-control.is-valid {
    border-color: #10b981;
    background: linear-gradient(145deg, #f0fdf4, #ffffff);
    box-shadow:
            inset 1px 1px 3px rgba(16, 185, 129, 0.1),
            inset -1px -1px 3px rgba(255, 255, 255, 0.9),
            0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Validation Feedback */
.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    padding-left: 4px;
}

.invalid-feedback.show {
    display: block;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-muted {
    color: #6b7280 !important;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4;
    font-weight: 400;
}

/* Enhanced Checkbox and Links Section */
.tp-forgot-password {
    margin-bottom: 32px;
    position: relative;
}

.tp-forgot-password.d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Advanced Checkbox Design */
.checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: var(--transition);
    box-shadow:
            inset 1px 1px 2px rgba(0, 0, 0, 0.05),
            inset -1px -1px 2px rgba(255, 255, 255, 0.8);
}

.checkbox input[type="checkbox"]:hover {
    border-color: #a3a3a3;
    box-shadow:
            inset 1px 1px 3px rgba(0, 0, 0, 0.08),
            inset -1px -1px 3px rgba(255, 255, 255, 0.9),
            0 0 0 2px rgba(102, 126, 234, 0.1);
}

.checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    box-shadow:
            inset 1px 1px 2px rgba(0, 0, 0, 0.1),
            0 0 0 3px rgba(102, 126, 234, 0.2);
    animation: checkboxPop 0.3s ease;
}

@keyframes checkboxPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    animation: checkmarkSlide 0.3s ease;
}

@keyframes checkmarkSlide {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.checkbox label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.checkbox:hover label {
    color: #374151;
}

.forgot a, .signin a, .account a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.forgot a:hover, .signin a:hover, .account a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.button-loading {
    display: none;
}



/* Sign Up Links */
.tp-signup {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.tp-signup .account {
    color: #6b7280;
    font-size: 14px;
}

.tp-signup .signin a {
    margin-left: 8px;
}

/* Ultra-Modern Password Strength Indicator */
.password-strength {
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid rgba(230, 230, 230, 0.6);
    box-shadow:
            inset 1px 1px 3px rgba(0, 0, 0, 0.02),
            inset -1px -1px 3px rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.strength-label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.strength-label::before {
    content: '🔒';
    font-size: 14px;
}

.strength-bar {
    height: 8px;
    background: linear-gradient(90deg, #e5e7eb, #f3f4f6);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
    animation: strengthShimmer 2s ease-in-out infinite;
}

@keyframes strengthShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#strength-indicator {
    height: 100%;
    width: 0%;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

#strength-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.3) 100%);
    animation: strengthGlow 3s ease-in-out infinite;
}

@keyframes strengthGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Enhanced Password Strength Levels with Red to Green Progression */
.strength-weak {
    background: linear-gradient(90deg, #dc3545, #c82333);
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.4);
    animation: weakPulse 2s ease-in-out infinite;
}

@keyframes weakPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 20px rgba(220, 53, 69, 0.6); }
}

.strength-fair {
    background: linear-gradient(90deg, #fd7e14, #e8590c);
    box-shadow: 0 0 12px rgba(253, 126, 20, 0.4);
    animation: fairPulse 2s ease-in-out infinite;
}

@keyframes fairPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(253, 126, 20, 0.4); }
    50% { box-shadow: 0 0 20px rgba(253, 126, 20, 0.6); }
}

.strength-good {
    background: linear-gradient(90deg, #ffc107, #e0a800);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.4);
    animation: goodPulse 2s ease-in-out infinite;
}

@keyframes goodPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.6); }
}

.strength-strong {
    background: linear-gradient(90deg, #198754, #146c43);
    box-shadow: 0 0 15px rgba(25, 135, 84, 0.5);
    animation: strongPulse 2s ease-in-out infinite;
}

@keyframes strongPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(25, 135, 84, 0.5); }
    50% { box-shadow: 0 0 25px rgba(25, 135, 84, 0.7); }
}

/* Bootstrap 5 Compatible Strength Text Colors */
#strength-text.text-danger { color: #dc3545 !important; }
#strength-text.text-warning { color: #fd7e14 !important; }
#strength-text.text-info { color: #ffc107 !important; }
#strength-text.text-success { color: #198754 !important; }

#strength-text {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

#strength-text::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: strengthBeat 1.5s ease-in-out infinite;
}

@keyframes strengthBeat {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Enhanced Password Toggle */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    cursor: pointer;
    color: #6b7280;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow:
            2px 2px 4px rgba(0, 0, 0, 0.05),
            -2px -2px 4px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.password-toggle:hover {
    color: #667eea;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow:
            3px 3px 6px rgba(0, 0, 0, 0.1),
            -3px -3px 6px rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.password-toggle:active {
    box-shadow:
            inset 2px 2px 4px rgba(0, 0, 0, 0.1),
            inset -2px -2px 4px rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(0.95);
}

.password-toggle i {
    font-size: 14px;
    transition: var(--transition);
}

/* Form Loading State */
.form-loading .form-control {
    opacity: 0.7;
    pointer-events: none;
    animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.5; }
}


/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .tp-login-area {
        padding: 30px 0;
        background-size: 300% 300%;
    }

    .tp_login {
        padding: 40px 28px;
        margin: 20px;
        border-radius: 20px;
        box-shadow:
                var(--shadow-medium),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .tp-login-title {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .login-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .form-control {
        padding: 16px 20px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 14px;
    }



    .password-toggle {
        width: 32px;
        height: 32px;
        right: 16px;
    }

    .password-toggle i {
        font-size: 13px;
    }

    .checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .password-strength {
        padding: 14px;
    }
}

@media (max-width: 576px) {
    .tp_login {
        padding: 32px 24px;
        margin: 15px;
        border-radius: 18px;
    }

    .tp-login-title {
        font-size: 24px;
    }

    .tp-forgot-password.d-flex {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .tp-signup.d-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .form-control {
        padding: 15px 18px;
    }

    .password-toggle {
        width: 30px;
        height: 30px;
        right: 14px;
    }
}

/* Micro-Interactions and Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tp_login {
    animation: fadeInUp 0.8s ease-out;
}

.tp-mail, .tp-password, .tp-name {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.tp-mail { animation-delay: 0.1s; }
.tp-password { animation-delay: 0.2s; }
.tp-name { animation-delay: 0.15s; }
.tp-login-button { animation-delay: 0.3s; }

/* Form Field Focus Ripple Effect */
.form-control {
    position: relative;
}

.form-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.form-control:focus::before {
    opacity: 1;
    transform: scale(1);
}

/* Success State Animation */
@keyframes successCheckmark {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.form-control.is-valid::after {
    content: '✓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
    animation: successCheckmark 0.5s ease;
}

/* Enhanced Alert Animations */
.alert {
    animation: alertSlideIn 0.5s ease-out;
    transform-origin: top center;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }


    .tp_login::after {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
        border-color: #000;
    }



    .checkbox input[type="checkbox"] {
        border-width: 3px;
        border-color: #000;
    }
}

/* Focus Improvements for Keyboard Navigation */
.form-control:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
    border-color: #667eea;
}

.checkbox input[type="checkbox"]:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}


.password-toggle:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --input-bg: rgba(255, 255, 255, 0.9);
        --input-focus: rgba(255, 255, 255, 0.95);
        --glass-bg: rgba(255, 255, 255, 0.08);
        --glass-border: rgba(255, 255, 255, 0.12);
    }
}

/* Animation Enhancements */
.tp_login {
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control:focus {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Loading States */
.form-loading .form-control {
    opacity: 0.7;
    pointer-events: none;
}



/* Focus Improvements */
.form-control:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}



/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }

}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }


}