*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Outfit', sans-serif;
    color: #f4f4f4;
}

body {
    background: linear-gradient(to bottom, #0a0a0a 0%, #1a1a1a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Card ── */
.login-wrapper {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* ── Logo ── */
.login-logo {
    display: block;
    width: 64px;
    height: auto;
    margin: 0 auto 18px;
}

/* ── Brand ── */
.login-brand {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 6px;
}

.title-portal {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    color: #c8c8c8;
}

.title-dp {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #f4f4f4;
    letter-spacing: 0.12em;
}

.login-company {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b8934d;
    margin-bottom: 4px;
}

.login-subtitle {
    text-align: center;
    font-size: 13px;
    color: #666666;
    margin-bottom: 28px;
}

/* ── Error ── */
.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.25);
    border-radius: 10px;
    color: #ff8080;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

.login-error .material-symbols-outlined { font-size: 18px; flex-shrink: 0; }

/* ── Fields ── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field-group label {
    font-size: 11px;
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    font-size: 18px;
    color: #3c3c3c;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f4f4f4;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    padding: 11px 42px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.input-wrapper input::placeholder { color: #3c3c3c; }

.input-wrapper input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

/* ── Show password ── */
.toggle-pw {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666666;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    padding: 4px;
}

.toggle-pw:hover { color: #a6a6a6; }
.toggle-pw .material-symbols-outlined { font-size: 18px; }

/* ── Submit ── */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #f4f4f4;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 12px;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-login .material-symbols-outlined { font-size: 20px; }

.btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-login:active { transform: translateY(0); }
