/* Bundling link: pages/login/main.css */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #1a2d3d;
    --navy-hover: #263f52;
    --navy-light: #1a4d6e;
    --accent: #1d9e75;
    --border: #e5e7eb;
    --border-focus: #1a4d6e;
    --text-primary: #1a2d3d;
    --text-sec: #6b7280;
    --text-muted: #9ca3af;
    --bg-input: #fafafa;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --error-border: #fca5a5;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(51, 110, 165, 0.14);
    filter: blur(90px);
    top: -120px;
    right: -120px;
    pointer-events: none;
    z-index: 0;
}

.glow-bottom {
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(29, 158, 117, 0.07);
    filter: blur(90px);
    bottom: -100px;
    left: -80px;
    pointer-events: none;
    z-index: 0;
}

.card {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 48px 40px 40px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    position: absolute;
    top: 0;
    right: 32px;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4px;
    padding: 6px 14px;
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge svg {
    width: 11px;
    height: 11px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    margin-bottom: 36px;
}

.logo-img {
    height: 48px;
    width: auto;
}

#logo-alternative {
    display: none;
}

#logo {
    height: 100px;
}


#logo img {
    max-width: 100%;
    max-height: 100%;
}

h1.heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

p.subheading {
    font-size: 14px;
    color: var(--text-sec);
    margin-bottom: 32px;
    line-height: 1.5;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 7px;
    letter-spacing: 0.1px;
}

.field-wrap {
    position: relative;
}

.field-wrap input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0 48px 0 14px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    outline: none;
    -webkit-appearance: none;
}

.field-wrap input::placeholder {
    color: var(--text-muted);
}

.field-wrap input:hover {
    border-color: #9ca3af;
    background: #fff;
}

.field-wrap input:focus {
    border-color: var(--border-focus);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 77, 110, 0.1);
}

.field-wrap input.has-error {
    border-color: var(--error-border);
    background: var(--error-bg);
}

.field-wrap input.has-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.field-icon.toggle {
    pointer-events: all;
    cursor: pointer;
    transition: color 0.15s;
}

.field-icon.toggle:hover {
    color: var(--navy-light);
}

.error-msg {
    font-size: 13px;
    color: var(--error);
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 5px;
}

.error-msg.visible {
    display: flex;
}

.error-msg svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.btn-login {
    width: 100%;
    height: 50px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.btn-login:hover:not(:disabled) {
    background: var(--navy-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26, 45, 61, 0.28);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.divider-line {
    height: 1px;
    background: var(--border);
    margin: 4px 0 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--navy-light);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    line-height: 1.5;
}

.footer-info svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding-top: 36px;
    }

    .card {
        padding: 36px 22px 28px;
        border-radius: 16px;
    }

    h1.heading {
        font-size: 21px;
    }

    .badge {
        right: 20px;
        font-size: 10.5px;
        padding: 5px 11px;
    }

    .logo-img {
        height: 40px;
    }
}

@media (max-width: 360px) {
    .card {
        padding: 32px 16px 24px;
    }
}

/* Bundling link: /custom/overwrite_login.css */


