/* ============================================
   AUTH PAGES STYLES
   ============================================ */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100vh;
    position: relative;
}

.auth-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    z-index: 10;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    background: rgba(22, 22, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.auth-logo .logo-img {
    width: 64px;
    height: 64px;
    animation: logoFloat 3s ease-in-out infinite alternate;
}

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

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    background-color: rgba(26, 26, 31, 0.5);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: rgba(26, 26, 31, 0.8);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        inset 0 0 10px rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.form-group input:hover:not(:focus) {
    border-color: var(--accent-light);
}

.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    display: none;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message.show {
    display: block;
}

.form-group input.invalid {
    border-color: var(--danger);
    animation: shake 0.3s ease;
}

.password-hint {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    opacity: 0.7;
}

.form-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
}

.form-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
    transition: all 0.3s ease;
}

.form-remember input[type="checkbox"]:hover {
    transform: scale(1.1);
}

.form-checkbox {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
    transition: all 0.3s ease;
}

.form-checkbox input[type="checkbox"]:hover {
    transform: scale(1.1);
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--accent-primary);
    text-decoration: none;
    position: relative;
}

.form-checkbox a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.form-checkbox a:hover::after {
    width: 100%;
}

.auth-divider {
    text-align: center;
    color: var(--text-tertiary);
    margin: 1.5rem 0;
    position: relative;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.auth-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-color) 20%, 
        var(--border-color) 80%, 
        transparent 100%);
    z-index: 0;
}

.auth-divider {
    position: relative;
    z-index: 1;
    background-color: transparent;
    padding: 0 1rem;
    width: fit-content;
    margin: 1.5rem auto;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.auth-footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.auth-footer a:hover::after {
    width: 100%;
}

.auth-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(167, 139, 250, 0.1));
    z-index: 2;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    z-index: 3000;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.2);
    opacity: 0;
    transform: translateY(20px) translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) translateX(0);
    pointer-events: auto;
}

.toast.success {
    border-color: var(--success);
    background: linear-gradient(145deg, 
        rgba(16, 185, 129, 0.1), 
        rgba(16, 185, 129, 0.05));
    border-left: 4px solid var(--success);
}

.toast.error {
    border-color: var(--danger);
    background: linear-gradient(145deg, 
        rgba(239, 68, 68, 0.1), 
        rgba(239, 68, 68, 0.05));
    border-left: 4px solid var(--danger);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-box {
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        background: rgba(22, 22, 26, 0.9);
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .auth-visual {
        display: none;
    }

    .auth-box {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-box {
        padding: 1.5rem;
        max-width: 100%;
        border-radius: 0;
    }

    .auth-logo h1 {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }

    .auth-logo .logo-img {
        width: 48px;
        height: 48px;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}