/* ==========================================================================
   /magic-login — redesign. Scoped to .magic-page only; does not touch the
   shared auth.css used by /login, /register, /reset-password.
   ========================================================================== */

.magic-page {
    --navy: #0c2a63;
    --navy-hover: #0a2252;
    --gold: #c8871a;
    --gold-on-navy: #e0a02a;
    --bg: #faf9f7;
    --card: #ffffff;
    --card-border: #e6e3e0;
    --text: #12151a;
    --text-secondary: #4b5158;
    --muted: #9aa0a6;
    --border: #d8d5d1;
    --error: #b3261e;

    font-family: 'Commissioner', system-ui, sans-serif;
    color: var(--text);
}

.magic-page h1, .magic-page h2, .magic-page h3 { margin: 0; text-wrap: pretty; }
.magic-page p { margin: 0; }
.magic-page a { color: inherit; }

/* ---- Hero ---- */
.magic-hero {
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 50% 26%, rgba(12, 42, 99, .07), transparent 44%),
        radial-gradient(circle at 50% 96%, rgba(200, 135, 26, .08), transparent 40%);
    padding: 48px 40px 72px;
}
.magic-hero-inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.magic-heading {
    font-size: 60px;
    line-height: 1.05;
    letter-spacing: -0.035em;
}
.magic-heading-light { font-weight: 300; }
.magic-heading-bold { font-weight: 600; margin-left: 0.28ch; }

.magic-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 520px;
}

.magic-form {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.magic-input {
    width: 100%;
    height: 64px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    font-family: inherit;
    font-size: 18px;
    text-align: center;
    color: var(--text);
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.magic-input::placeholder { color: var(--muted); }
.magic-input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(12, 42, 99, .12); }
.magic-input.is-invalid { border-color: var(--error); }

.magic-field-error {
    display: none;
    font-size: 13px;
    color: var(--error);
    margin-top: -6px;
}
.magic-field-error.is-visible { display: block; }

.magic-submit {
    width: 100%;
    height: 64px;
    border: none;
    border-radius: 14px;
    background: var(--navy);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}
.magic-submit:hover:not(:disabled) { background: var(--navy-hover); }
.magic-submit:disabled { background: #4a6494; cursor: default; }
.magic-submit:focus-visible,
.magic-input:focus-visible,
.magic-change-email:focus-visible,
.magic-resend-btn:focus-visible,
.magic-microcopy a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.magic-microcopy {
    font-size: 14.5px;
    color: var(--muted);
    margin-top: 4px;
}
.magic-microcopy a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* Success state */
.magic-success {
    width: 100%;
    max-width: 560px;
    background: #eef4ec;
    border: 1px solid #cbe0c6;
    border-radius: 14px;
    padding: 22px 26px;
    text-align: left;
}
.magic-success-title { font-weight: 600; font-size: 17px; color: #2b5a25; margin-bottom: 6px; }
.magic-success-body { font-size: 15.5px; color: #2b5a25; line-height: 1.55; }
.magic-change-email {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: underline;
}

/* ---- Πώς λειτουργεί (navy band) ---- */
.magic-how {
    background-color: var(--navy);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px);
    padding: 64px 80px;
}
.magic-how-inner { max-width: 1120px; margin: 0 auto; }
.magic-how-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.magic-how-header h2 { font-size: 30px; font-weight: 600; color: #fff; }
.magic-how-subtitle { font-size: 16px; color: rgba(255, 255, 255, .6); }

.magic-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}
.magic-how-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--gold-on-navy);
    color: var(--gold-on-navy);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.magic-how-step h3 { font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.magic-how-step p { font-size: 16px; color: rgba(255, 255, 255, .7); line-height: 1.55; }
.magic-how-text-mobile { display: none; }

/* ---- Συχνές απορίες ---- */
.magic-faq {
    background-color: var(--bg);
    padding: 64px 80px 76px;
}
.magic-faq-inner { max-width: 1120px; margin: 0 auto; }
.magic-faq h2 { font-size: 26px; font-weight: 600; margin-bottom: 28px; }

.magic-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 36px;
    margin-bottom: 24px;
}
.magic-faq-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 24px 26px;
}
.magic-faq-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.magic-faq-card p { font-size: 15.5px; color: var(--text-secondary); line-height: 1.6; }

.magic-resend {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.magic-resend-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    align-self: center;
}
.magic-resend-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--navy);
    text-decoration: underline;
    cursor: pointer;
}
.magic-resend-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ==========================================================================
   Tablet (481px–1023px)
   ========================================================================== */
@media (max-width: 1023px) {
    .magic-heading { font-size: 44px; }
    .magic-how-grid { grid-template-columns: 1fr; gap: 28px; }
    .magic-faq-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .magic-page { font-size: 15.5px; }

    .magic-hero { padding: 44px 26px 40px; }
    .magic-heading { font-size: 36px; }
    .magic-subtitle { font-size: 16px; }
    .magic-input, .magic-submit { height: 58px; border-radius: 13px; }
    .magic-microcopy { font-size: 14px; }

    .magic-how { padding: 36px 26px; }
    .magic-how-header { margin-bottom: 24px; }
    .magic-how-header h2 { font-size: 22px; }
    .magic-how-grid { gap: 22px; }
    .magic-how-step {
        display: grid;
        grid-template-columns: 34px 1fr;
        column-gap: 14px;
        align-items: start;
    }
    .magic-how-circle {
        width: 34px;
        height: 34px;
        font-size: 15px;
        margin-bottom: 0;
        grid-row: 1 / 3;
    }
    .magic-how-step h3 { font-size: 16.5px; margin-bottom: 4px; }
    .magic-how-step p { font-size: 14.5px; }
    .magic-how-text-desktop { display: none; }
    .magic-how-text-mobile { display: block; }

    .magic-faq { padding: 36px 26px 44px; }
    .magic-faq h2 { font-size: 20px; margin-bottom: 18px; }
    .magic-faq-grid { gap: 14px; margin-bottom: 18px; }
    .magic-faq-card { padding: 18px 20px; }
    .magic-faq-card h3 { font-size: 15.5px; }
    .magic-faq-card p { font-size: 14.5px; }
    .magic-faq-4 { display: none; }

    .magic-resend { padding: 16px 18px; font-size: 14px; }
}
