/* ===========================
   FINBIS WORKSPACE LOGIN
=========================== */

:root {
    --finbis-red: #9B1D20;
    --finbis-orange: #E67E22;
    --finbis-gold: #F2C94C;
    --text-dark: #1f2937;
    --radius: 18px;
}

/* ===========================
   BASE RESET
=========================== */

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-height: 100svh; /* FIX iOS viewport bug */
    background: linear-gradient(
        135deg,
        var(--finbis-red) 0%,
        var(--finbis-orange) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   WRAPPER
=========================== */

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* ===========================
   LOGIN CARD
=========================== */

.auth-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 40px 36px 34px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

/* ===========================
   BRANDING
=========================== */

.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.brand-logo img {
    max-width: 180px;
    width: 100%;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}

.brand {
    text-align: center;
    margin-bottom: 24px;
}

.brand p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
}

/* ===========================
   ALERTS
=========================== */

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--finbis-red);
}

.alert-success {
    background: #dcfce7;
    color: #14532d;
    border-left: 4px solid #22c55e;
}

/* ===========================
   FORM FIELDS
=========================== */

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

.field input {
    width: 100%;
    padding: 13px 14px;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.08),
        0 6px 14px rgba(0,0,0,0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input:focus-visible {
    outline: none;
    border-color: var(--finbis-orange);
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.08),
        0 10px 24px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

/* ===========================
   PASSWORD TOGGLE
=========================== */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #374151;
    opacity: 0.6;
}

.toggle-password:hover,
.toggle-password:focus-visible {
    opacity: 1;
}

/* ===========================
   BUTTON
=========================== */

.btn-primary {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(
        135deg,
        var(--finbis-gold),
        #f59e0b
    );
    color: #111827;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}

/* ===========================
   FOOTER LINK
=========================== */

.login-footer {
    margin-top: 22px;
    text-align: center;
}

.login-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

.login-footer a:hover,
.login-footer a:focus-visible {
    text-decoration: underline;
}

/* ===========================
   REDUCED MOTION SUPPORT
=========================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        transform: none !important;
    }
}
