/* Apple HIG Driver Login */
:root {
    --aura-blue: #0071e3;
    --aura-blue-hover: #0077ed;
    --aura-bg: #f5f5f7;
    --aura-card-bg: #ffffff;
    --aura-text-main: #1d1d1f;
    --aura-text-sec: #86868b;
    --aura-border: #d2d2d7;
    --aura-error: #ff3b30;
}

body.aura-login-page {
    background-color: var(--aura-bg) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

#aura-login-root {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    box-sizing: border-box;
}

.aura-login-card {
    background: var(--aura-card-bg);
    border-radius: 18px;
    padding: 32px;
    /* Reduced from 40px */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.aura-login-header {
    margin-bottom: 24px;
    /* Reduced from 32px */
}

.aura-login-logo svg,
.aura-login-logo img {
    display: block;
    margin: 0 auto 16px;
    color: var(--aura-text-main);
    max-height: 100px;
    width: auto;
}

.aura-login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--aura-text-main);
    margin: 0 0 8px;
}

.aura-login-header p {
    font-size: 17px;
    color: var(--aura-text-sec);
    margin: 0;
}

.field-group {
    text-align: left;
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--aura-text-main);
    margin-bottom: 8px;
}

.aura-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--aura-border);
    border-radius: 12px;
    font-size: 17px;
    color: var(--aura-text-main);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.aura-input:focus {
    border-color: var(--aura-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.aura-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--aura-text-sec);
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--aura-blue);
}

.forgot-link {
    color: var(--aura-blue);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    height: 48px;
    background: var(--aura-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--aura-blue-hover);
}

.login-footer {
    margin-top: 32px;
    font-size: 13px;
    color: var(--aura-text-sec);
}

.login-footer a {
    color: var(--aura-blue);
    text-decoration: none;
}

/* Error generic */
.login-error {
    background: #fff2f2;
    color: var(--aura-error);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

/* Auth Actions (Signed In State) */
.aura-auth__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.2;
}

.aura-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: transparent;
    color: var(--aura-blue);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.aura-btn-secondary:hover {
    background-color: rgba(0, 113, 227, 0.08);
    /* faint blue hover */
    text-decoration: none;
}

.aura-btn-secondary:focus-visible,
.btn-primary:focus-visible {
    outline: 2px solid var(--aura-blue);
    outline-offset: 2px;
}

@media (min-width: 480px) {
    .aura-auth__actions {
        flex-direction: row;
        gap: 16px;
    }

    .btn-primary,
    .aura-btn-secondary {
        /* On larger screens, force equal width for balance, or auto if preferred. 
           Let's go with flex:1 to align them nicely. */
        flex: 1;
    }
}