/* ============================================
   Login Page Specific Styles
   ============================================ */

body.login-page {
    background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 50%, #F8FAFC 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
body.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(192, 74, 90, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(15, 76, 92, 0.03) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
}

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

body.login-page .main-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-container {
    min-height: 80vh;
    animation: fadeInUp 0.6s ease-out;
}

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

.login-card {
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
    animation: cardSlideIn 0.5s ease-out 0.1s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.15), 0 12px 32px rgba(0, 0, 0, 0.1);
}

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

.login-header {
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.10rem;
    animation: logoFadeIn 0.7s ease-out 0.3s both;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.02);
}

.login-title {
    font-weight: 600;
    color: var(--primary-text);
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

/* Login form spacing improvements */
body.login-page .form-label {
    margin-bottom: 0.625rem;
    font-weight: 500;
    color: var(--primary-text);
    animation: fadeIn 0.5s ease-out 0.5s both;
}

body.login-page .mb-3 {
    margin-bottom: 1.25rem !important;
    animation: fadeIn 0.5s ease-out 0.6s both;
}

body.login-page .mb-4 {
    margin-bottom: 1.75rem !important;
    animation: fadeIn 0.5s ease-out 0.7s both;
}

body.login-page .form-control {
    transition: all 0.3s ease;
    border: 1.5px solid var(--border-color);
}

body.login-page .form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 76, 92, 0.15);
}

/* Password visibility toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
    border-radius: 4px;
}

.password-toggle-btn:hover {
    color: var(--primary-accent);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--primary-accent);
}

.password-toggle-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.password-toggle-btn:hover i {
    transform: scale(1.1);
}

body.login-page .btn-primary {
    padding: 0.8125rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out 0.8s both;
}

body.login-page .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

body.login-page .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

body.login-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 74, 90, 0.4);
}

body.login-page .btn-primary:active {
    transform: translateY(0);
}

/* Stagger animation for form elements */
body.login-page form > div {
    animation: slideInLeft 0.5s ease-out both;
}

body.login-page form > div:nth-child(1) {
    animation-delay: 0.5s;
}

body.login-page form > div:nth-child(2) {
    animation-delay: 0.6s;
}

body.login-page form > button {
    animation-delay: 0.7s;
}

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

