/* =============================
   LOGIN PAGE - BusinessGame
   ============================= */

/* The wrapper centers the card and provides the background */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 16px;
    /* Subtle dark gradient to match the app palette while letting the logo's light badge pop */
    background: radial-gradient(circle at top left, rgba(31, 65, 107, 0.95), rgba(0, 99, 156, 0.9));
    background-attachment: fixed;
}

/* The card itself is white (light) so the logo with its light background fits naturally */
.login-card {
    background: var(--helderwit);
    width: 420px;
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(31, 65, 107, 0.22);
    position: relative;
    overflow: visible;
}

/* Decorative shapes that echo the site's style (kept subtle) */
.login-card::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--muntgroen);
    opacity: 0.08;
    pointer-events: none;
}

.login-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: var(--stormblauw);
    opacity: 0.06;
    transform: rotate(45deg);
    pointer-events: none;
}

/* Header area */
.login-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

/* Full logo image size (keeps aspect ratio) */
.logo-full {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Brand text under the logo */
.brand-text {
    margin-bottom: 6px;
}

.app-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--nachtblauw);
    margin: 0;
    letter-spacing: -0.2px;
}

/* Decorative underline below brand title */
.logo-underline {
    height: 3px;
    width: 70px;
    margin: 6px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--stormblauw), var(--muntgroen));
}

/* Page-specific titles */
.login-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--nachtblauw);
    margin-top: var(--space-sm);
    margin-bottom: 6px;
}

/* Form layout */
.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-weight: 700;
    color: var(--nachtblauw);
    font-size: 14px;
}

/* Reuse shared input tokens but set a slightly larger radius for the card */
.form-input {
    border: 2px solid var(--mistblauw);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    color: var(--printerzwart);
    transition: all 0.16s ease;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(24, 23, 22, 0.45);
}

.form-input:focus {
    outline: none;
    border-color: var(--stormblauw);
    box-shadow: 0 0 0 4px rgba(0, 99, 156, 0.08);
}

/* Button uses shared .save-button but ensure it sits well in the card */
.save-button {
    margin-top: var(--space-md);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    display: inline-block;
    text-align: center;
}

/* Error toast (if shown) inside card - overrides absolute positioning so it flows in card */
.notification-toast {
    background: var(--warmrood);
    color: var(--helderwit);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(231, 63, 22, 0.2);
    margin-bottom: var(--space-md);
}

/* Small responsive tweaks */
@media (max-width: 480px) {
    .login-card {
        width: 100%;
        padding: 20px;
        border-radius: 10px;
    }

    .logo-full {
        max-width: 140px;
    }

    .app-title {
        font-size: 18px;
    }

    .login-title {
        font-size: 20px;
    }
}