/* ============================================================
   Writer - CouldIWriteABook.com
   FILE: auth.css
   Shared styles for login, register, forgot_password pages
   LAST EDITED: April 6, 2026 12:00 PM Central
   ============================================================ */

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #eef0f2;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.12);
    border: 1px solid #e0e0e0;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 860px;
}

.logo-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.logo-wrap img {
    height: 100px;
    width: auto;
}

h1 {
    font-size: 1.5rem;
    margin: 0 0 6px;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.25rem;
    color: #666;
    margin: 0 0 22px;
}

.error-box {
    background: #fde8e8;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.error-box a { color: #c0392b; }

.msg-box {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.msg-success {
    background: #e8f8ee;
    border: 1px solid #b2dfcc;
    color: #1e7e45;
}

.msg-error {
    background: #fde8e8;
    border: 1px solid #f5c6c6;
    color: #c0392b;
}

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
}

.field input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.25rem;
    background: #f9fafb;
    color: #2c3e50;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
    outline: none;
    border-color: #3d9bd4;
    box-shadow: 0 0 0 3px rgba(61,155,212,0.15);
    background: #fff;
}

.password-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-wrap input { flex: 1; }

.toggle-pw {
    font-size: 1.25rem;
    color: #3d9bd4;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    width: 80%;
    padding: 18px;
    background: #3d9bd4;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.15s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary:hover { background: #2c7fb5; }

.fine-print {
    font-size: 1.25rem;
    color: #666;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.links {
    margin-top: 18px;
    text-align: center;
    font-size: 1.25rem;
    color: #666;
}

.links a {
    color: #3d9bd4;
    text-decoration: none;
    font-weight: 600;
}

.links a:hover { text-decoration: underline; }

.divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

@media (max-width: 640px) {
    body { padding: 16px 12px; align-items: flex-start; }
    .card { padding: 24px 18px 24px; border-radius: 14px; }
    .logo-wrap img { height: 70px; }
    h1 { font-size: 1.3rem; }
    .subtitle, .field label, .field input,
    .toggle-pw, .fine-print, .links,
    .error-box { font-size: 1rem; }
    .field input { padding: 13px 14px; }
    .btn-primary { width: 100%; font-size: 1.2rem; padding: 15px; }
}
