*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --aralco-black: #0a0a0a;
    --aralco-green: #1b7340;
    --aralco-lime: #8dc63f;
    --aralco-coral: #b54d4d;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(ellipse at top, rgba(27, 115, 64, 0.35) 0%, transparent 55%),
        linear-gradient(160deg, #050505 0%, #0f1a12 45%, #0a0a0a 100%);
    min-height: 100vh;
    color: #1a1a2e;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem 2rem;
    border-top: 4px solid var(--aralco-green);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: block;
    width: 160px;
    height: auto;
    margin: 0 auto 1.1rem;
}

.login-header h1 {
    font-size: 1.45rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
}

.login-header p {
    font-size: 0.9rem;
    color: #6b7280;
}

.login-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: var(--aralco-green);
    box-shadow: 0 0 0 3px rgba(27, 115, 64, 0.18);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    padding-right: 3.25rem;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.toggle-password:hover {
    color: #4b5563;
    background: #f3f4f6;
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.92);
    background: #e5e7eb;
}

.toggle-password:focus-visible {
    outline: none;
    color: var(--aralco-green);
    background: rgba(27, 115, 64, 0.08);
    box-shadow: 0 0 0 3px rgba(27, 115, 64, 0.16);
}

.toggle-password[aria-pressed="true"] {
    color: var(--aralco-green);
}

.toggle-password[aria-pressed="true"]:hover {
    color: #156033;
    background: rgba(27, 115, 64, 0.1);
}

.toggle-password-icons {
    position: relative;
    display: block;
    width: 1.25rem;
    height: 1.25rem;
}

.toggle-password-icons svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toggle-password .icon-eye {
    opacity: 1;
    transform: scale(1);
}

.toggle-password .icon-eye-off {
    opacity: 0;
    transform: scale(0.85);
}

.toggle-password.is-visible .icon-eye {
    opacity: 0;
    transform: scale(0.85);
}

.toggle-password.is-visible .icon-eye-off {
    opacity: 1;
    transform: scale(1);
}

.btn-login {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--aralco-green) 0%, #156033 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(27, 115, 64, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #156033 0%, #0f4d28 100%);
}

.btn-login:active {
    transform: scale(0.99);
}
