:root {
    --im-primary: rgb(27, 101, 132);
    --im-dark: rgb(4, 62, 96);
    --im-light: rgb(59, 176, 228);
    --im-gradient: linear-gradient(306deg, rgb(27, 101, 132), rgb(4, 62, 96), rgb(59, 176, 228));
    --surface-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --border-color: #e2e8f0;
    --radius-md: 10px;
    --radius-xl: 20px;
    --shadow-card: 0 20px 45px -10px rgba(4, 62, 96, 0.22), 0 8px 16px -4px rgba(4, 62, 96, 0.08);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--im-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    position: relative;
    isolation: isolate;
}

/* Subtle human texture pattern */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: -1;
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 520px;
    background: var(--surface-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 44px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Top Accent Line */
.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--im-gradient);
}

.brand-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 24px;
    display: inline-block;
}

.login-title {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 7px;
}

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

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-subtle);
    font-size: 1.15rem;
    pointer-events: none;
    transition: color 0.15s ease;
}

.form-control {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
    color: var(--text-subtle);
}

.form-control:focus {
    border-color: var(--im-primary);
    box-shadow: 0 0 0 3px rgba(27, 101, 132, 0.12);
}

.input-wrap:focus-within .input-icon {
    color: var(--im-primary);
}

.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-subtle);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.password-toggle:hover {
    color: var(--text-main);
}

.btn-submit {
    width: 100%;
    padding: 13px 20px;
    margin-top: 10px;
    background: var(--im-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(4, 62, 96, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(4, 62, 96, 0.32);
    opacity: 0.98;
}

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

.copyright {
    margin-top: 32px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Error state container matching existing Blade error session */
.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: left;
}
