/* ============================================================
   public/assets/style.css
   Domain For Sale — Clean, responsive, modern design
   ============================================================ */

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

:root {
    --color-bg:        #f5f7fa;
    --color-surface:   #ffffff;
    --color-primary:   #2563eb;
    --color-primary-h: #1d4ed8;
    --color-danger:    #dc2626;
    --color-success:   #16a34a;
    --color-text:      #1e293b;
    --color-muted:     #64748b;
    --color-border:    #e2e8f0;
    --radius:          10px;
    --shadow:          0 4px 24px rgba(0,0,0,0.08);
    --font:            'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Layout ---------------------------------------- */
.page-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 520px;
}

/* ---------- Header / Brand -------------------------------- */
.brand {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.brand h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.brand p {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

/* ---------- Landing page hero ----------------------------- */
.hero {
    text-align: center;
    padding: 1rem 0 2rem;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.hero-sub {
    color: var(--color-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ---------- Buttons --------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.18s, transform 0.1s;
    line-height: 1.4;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-h);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ---------- Forms ----------------------------------------- */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

label .required {
    color: var(--color-danger);
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font);
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

input.is-invalid {
    border-color: var(--color-danger);
}

.field-error {
    color: var(--color-danger);
    font-size: 0.82rem;
    margin-top: 0.3rem;
    display: block;
}

.input-hint {
    color: var(--color-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ---------- Alerts ---------------------------------------- */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ---------- Section heading ------------------------------- */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.section-sub {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

/* ---------- Question box ---------------------------------- */
.question-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    font-size: 1rem;
}

/* ---------- Success page ---------------------------------- */
.success-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.success-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-success);
    margin-bottom: 0.5rem;
}

.success-msg {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ---------- Footer ---------------------------------------- */
.page-footer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-muted);
    padding: 1rem;
}

/* ---------- Divider --------------------------------------- */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.5rem 0;
}

/* ---------- Back link ------------------------------------- */
.back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: 1rem;
}

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

/* ---------- Responsive ------------------------------------ */
@media (max-width: 540px) {
    .card {
        padding: 1.75rem 1.25rem;
    }
    .hero-title {
        font-size: 1.25rem;
    }
}
