@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.08) 0px, transparent 50%);
    margin: 0;
    padding: 24px 16px;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.login-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 20px 25px -5px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4F46E5 0%, #3B82F6 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 10px rgba(79, 70, 229, 0.15));
}

.login-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 0.86rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-group-modern {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.input-group-modern .input-group-text {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
    padding: 0 14px;
    display: flex;
    align-items: center;
}

.form-control-modern {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.input-group-modern .form-control-modern {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-control-modern:focus {
    border-color: #4F46E5;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-control-modern::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace !important;
    letter-spacing: 0.5px;
}

.btn-modern-login {
    height: 46px;
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-modern-login:hover {
    background: linear-gradient(135deg, #4338CA 0%, #2563EB 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.btn-modern-login:active {
    transform: scale(0.98);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0 18px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider::before {
    margin-right: 12px;
}

.divider::after {
    margin-left: 12px;
}

.btn-faceid {
    height: 44px;
    width: 100%;
    border-radius: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-faceid:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.btn-faceid img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.register-prompt {
    font-size: 0.86rem;
    color: #64748b;
    margin-top: 18px;
    text-align: center;
}

.register-prompt a {
    color: #4F46E5;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.register-prompt a:hover {
    color: #4338CA;
    text-decoration: underline;
}

.text-uppercase {
    text-transform: uppercase !important;
}

/* Mobile Responsive Date Input */
input[type="date"].form-control-modern {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    overflow: hidden !important;
}

input[type="date"].form-control-modern::-webkit-date-and-time-value {
    text-align: left;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 24px !important;
    min-height: 24px !important;
    height: 24px !important;
}

input[type="date"].form-control-modern::-webkit-calendar-picker-indicator {
    display: inline-block;
    cursor: pointer;
    margin: 0;
    padding: 4px;
    opacity: 0.6;
}

input[type="date"].form-control-modern::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.footer-credits {
    text-align: center;
    margin-top: 20px;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* ====================================================================
   Mobile Responsive Media Queries
   ==================================================================== */
@media (max-width: 576px) {
    body {
        padding: 16px 12px;
    }

    .login-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .login-card {
        padding: 24px 16px;
        border-radius: 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .login-header {
        margin-bottom: 20px;
    }

    .login-logo {
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
    }

    .login-title {
        font-size: 1.2rem;
    }

    .login-subtitle {
        font-size: 0.82rem;
    }

    .form-control-modern {
        height: 46px;
        font-size: 0.95rem;
    }

    input[type="date"].form-control-modern {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        font-size: 0.9rem !important;
        padding: 8px 10px !important;
    }

    .input-group-modern .input-group-text {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .btn-modern-login, .btn-faceid {
        height: 46px;
        font-size: 0.92rem;
    }
}