/* Login-sida — skandinavisk hamnkontor-estetik. Generös padding för 60+-läsare,
   serif-rubrik (Cormorant Garamond), brass-färgad accent, inga gradients eller
   glassmorphism. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Source+Sans+3:wght@400;500;600&display=swap');

.login-page {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background-color: #f5f1e9;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 24px,
            rgba(28, 56, 92, 0.025) 24px,
            rgba(28, 56, 92, 0.025) 25px
        );
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: #1a2530;
}

.login-card {
    width: 100%;
    max-width: 480px;
    background-color: #fdfaf3;
    border: 1px solid #d4c9b0;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 24px 48px -16px rgba(28, 56, 92, 0.18),
        0 8px 16px -8px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Brass-färgade hörn-ornament */
.login-card::before,
.login-card::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid #b08d3a;
    pointer-events: none;
}
.login-card::before {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
}
.login-card::after {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
}

.login-card-header {
    padding: 3rem 3rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e8dfc9;
    position: relative;
}

.login-card-header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #b08d3a;
}

.login-anchor {
    color: #1c385c;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.login-overline {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6b5d3e;
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.login-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #1c385c;
    margin: 0 0 0.25rem;
    line-height: 1.1;
}

.login-subtitle {
    font-style: italic;
    color: #6b5d3e;
    font-size: 1.05rem;
    margin: 0;
}

.login-card-body {
    padding: 2.5rem 3rem 1rem;
}

.login-field {
    margin-bottom: 1.75rem;
}

.login-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: #1c385c;
    margin-bottom: 0.6rem;
}

.login-input {
    width: 100%;
    padding: 0.95rem 1rem;
    font-family: inherit;
    font-size: 1.05rem;
    color: #1a2530;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #c8bea4;
    border-radius: 0;
    transition: border-color 150ms ease, background-color 150ms ease;
    box-sizing: border-box;
}

.login-input::placeholder {
    color: #b8ad8e;
    font-style: italic;
}

.login-input:focus {
    outline: none;
    border-bottom-color: #1c385c;
    background-color: rgba(28, 56, 92, 0.025);
}

.login-validation {
    display: block;
    color: #a83232;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-style: italic;
}

.login-button {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 0.75rem;
    background-color: #1c385c;
    color: #fdfaf3;
    border: none;
    border-radius: 0;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 200ms ease, transform 100ms ease;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.login-button:hover:not(:disabled) {
    background-color: #142a45;
}

.login-button:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.login-button:disabled {
    background-color: #6b5d3e;
    cursor: not-allowed;
    opacity: 0.7;
}

.login-alert {
    background-color: #fdf0e9;
    border-left: 4px solid #a83232;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #5e1818;
    font-size: 0.95rem;
}

.login-alert strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.login-card-footer {
    padding: 1.5rem 3rem 2.5rem;
    border-top: 1px dashed #d4c9b0;
    background-color: rgba(176, 141, 58, 0.05);
}

.login-card-footer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a4030;
    text-align: center;
}

.login-card-footer strong {
    color: #1c385c;
    font-weight: 600;
}

.login-footnote {
    margin-top: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6b5d3e;
    text-align: center;
}

.login-footnote span {
    color: #b08d3a;
}

/* Mobile: ge mer luft, lite mindre rubrik */
@media (max-width: 600px) {
    .login-card-header,
    .login-card-body,
    .login-card-footer {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }
    .login-title {
        font-size: 2.4rem;
    }
}
