/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Uses the Inter font you imported */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f3f4f6; /* Soft light gray background */
    color: #111827;
    
    /* Perfectly center the auth shell on the screen */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* =========================================
   Layout & Cards
   ========================================= */
.auth-shell {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.auth-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.02);
    padding: 40px;
}

/* =========================================
   Header & Logo
   ========================================= */
.auth-logo {
    width: 48px;
    height: 48px;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 24px;
}

header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

header p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* =========================================
   Alerts
   ========================================= */
.auth-alert {
    background-color: #fef2f2;
    border: 1px solid #f87171;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

/* =========================================
   Form Elements
   ========================================= */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.auth-label-row label {
    margin-bottom: 0;
}

.auth-label-row a {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-label-row a:hover {
    text-decoration: underline;
}

/* Input Wrappers & Icons */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    padding: 12px 40px; /* Padding accommodates the absolute icons */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    display: flex;
    pointer-events: none; /* Prevents icon from blocking input clicks */
}

.pass-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    padding: 2px;
    transition: color 0.2s;
}

.pass-toggle:hover {
    color: #4b5563;
}

/* =========================================
   Checkboxes & Buttons
   ========================================= */
.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 24px;
    cursor: pointer;
    font-weight: 500;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
    background-color: #1d4ed8;
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =========================================
   Footer Switch
   ========================================= */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.auth-switch a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.auth-switch a:hover {
    text-decoration: underline;
}