/* =============================================
   Auth pages — fintech-inspired standalone layout
   ============================================= */

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

body.auth-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* Brand wordmark */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}
.auth-brand-name {
    font-size: 28px;
    font-weight: 700;
    color: #606C38;
    letter-spacing: -0.5px;
}
.auth-brand-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 400;
}

/* Card */
.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 36px 32px;
    width: 100%;
    max-width: 440px;
}

/* Headings */
.auth-heading {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111;
}
.auth-subheading {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Messages (Django messages framework) */
.auth-messages {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
    width: 100%;
    max-width: 440px;
}
.auth-messages li {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}
.auth-messages .success { background: #ecfdf5; color: #065f46; }
.auth-messages .error   { background: #fef2f2; color: #991b1b; }
.auth-messages .info    { background: #eff6ff; color: #1e40af; }
.auth-messages .warning { background: #fffbeb; color: #92400e; }

/* Form fields */
.auth-field {
    margin-bottom: 18px;
}
.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.auth-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
    color: #111;
}
.auth-input:focus {
    border-color: #606C38;
    box-shadow: 0 0 0 3px rgba(96, 108, 56, .15);
}
.auth-input::placeholder {
    color: #9ca3af;
}

/* Two-column row for name fields */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Error text */
.auth-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}
.auth-error-box {
    background: #fef2f2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
}

/* Primary button */
.auth-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #606C38;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    text-align: center;
    text-decoration: none;
    margin-top: 8px;
}
.auth-btn:hover {
    background: #4e5a2d;
}
.auth-btn:active {
    background: #3d4723;
}

/* Link row (below form) */
.auth-link-row {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}
.auth-link-row a {
    color: #606C38;
    text-decoration: none;
    font-weight: 500;
}
.auth-link-row a:hover {
    text-decoration: underline;
}

/* Magic code input */
.auth-code-input {
    width: 100%;
    padding: 14px;
    font-size: 28px;
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    letter-spacing: 0.35em;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.auth-code-input:focus {
    border-color: #606C38;
    box-shadow: 0 0 0 3px rgba(96, 108, 56, .15);
}

/* Resend link */
.auth-resend {
    text-align: center;
    margin-top: 16px;
}
.auth-resend button {
    background: none;
    border: none;
    color: #606C38;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}
.auth-resend button:hover {
    text-decoration: underline;
}

/* Pending / success icon */
.auth-icon {
    text-align: center;
    margin-bottom: 16px;
}
.auth-icon svg {
    width: 56px;
    height: 56px;
    color: #606C38;
}

/* Footer */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
    .auth-row {
        grid-template-columns: 1fr;
    }
    .auth-code-input {
        font-size: 24px;
    }
}
