/* Login Page Styles */

body {
    background: #fafbfc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 56px 48px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-container:hover {
    transform: translateY(-4px);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        inset 0 2px 4px 0 rgba(255, 255, 255, 1);
}

.login-header i {
    font-size: 36px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.2));
}

.login-header h3 {
    color: #111827;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

.form-label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.form-label i {
    color: #9ca3af;
    margin-right: 6px;
    font-size: 13px;
    transition: color 0.2s;
}

.input-group:focus-within .form-label i {
    color: #4f46e5;
}

.form-control {
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #111827;
    width: 100%;
}

.form-control:hover {
    border-color: #d1d5db;
    background: #fcfcfd;
}

.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
    background: #ffffff;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #9ca3af;
}

.btn-login {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.3px;
    width: 100%;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    margin-right: 8px;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 14px 16px;
    font-size: 14px;
    background: #fef2f2;
    color: #991b1b;
    margin-bottom: 24px;
    border-left: 4px solid #ef4444;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.05);
}

.alert i {
    margin-right: 12px;
    color: #ef4444;
    font-size: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* Input group styling */
.input-group {
    position: relative;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.login-footer p {
    color: #9ca3af;
    font-size: 13px;
    margin: 0;
    transition: color 0.2s;
}

.login-footer:hover p {
    color: #6b7280;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 40px 24px;
    }

    .login-header h3 {
        font-size: 24px;
    }

    .login-header .icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .login-header i {
        font-size: 32px;
    }
}

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}