/* ==========================================================================
   Storefront / themes / default — auth.css
   Login, register, forgot password, reset password forms.
   Default styling (no per-theme blade guards).
   ========================================================================== */

.sf-auth-wrap { max-width: 960px; margin: 60px auto; padding: 0 15px; }
.sf-auth-wrap.narrow { max-width: 620px; }
.sf-auth-wrap.tight  { max-width: 480px; }

.sf-auth-row { display: flex; flex-wrap: wrap; align-items: stretch; }

.sf-auth-brand {
    padding: 18px;
    border-radius: 16px 0 0 16px;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sf-auth-brand-logo  { max-width: 260px; margin-bottom: 26px; }
.sf-auth-brand-title { font-weight: 700; margin-bottom: 10px; }
.sf-auth-brand-sub   { margin-top: 0; margin-bottom: 1rem; color: #333232; }

.sf-auth-card {
    padding: 40px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 40px rgb(0, 0, 0, .1);
}

.sf-auth-title { font-weight: 700; margin-bottom: 20px; }
.sf-auth-sub   { color: #6b7280; font-size: 13px; margin-bottom: 20px; }

.sf-auth-error {
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #991b1b;
    font-size: 13px;
}

.sf-auth-success {
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #065f46;
    font-size: 13px;
}

.sf-auth-field { margin-bottom: 16px; }
.sf-auth-field.tight { margin-bottom: 14px; }

.sf-auth-label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

.sf-auth-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    color: inherit;
}

.sf-auth-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgb(102, 126, 234, .12);
}

.sf-auth-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(181deg, #45ecda, #117491);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.sf-auth-button.gradient-purple {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.sf-auth-link  { color: #667eea; }
.sf-auth-link.bold { font-weight: 600; }

.sf-auth-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.sf-auth-checkbox-row {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.sf-auth-muted {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
}
.sf-auth-muted.tight { margin-top: 16px; }

.sf-auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.sf-auth-radio-row { font-size: 13px; cursor: pointer; }
.sf-auth-radio-row + .sf-auth-radio-row { margin-left: 14px; }
.sf-auth-hint { margin-top: 7px; font-size: 12px; color: #64748b; }

.sf-auth-social-wrap {
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.sf-auth-social-label {
    text-align: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.sf-auth-social-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sf-auth-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: all .2s;
}
.sf-auth-social-icon:hover { transform: scale(1.05); }

.sf-auth-social-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.sf-auth-social-row.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 12px;
}

.sf-auth-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: all .2s;
}

.sf-auth-home-row {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.sf-auth-home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #667eea;
    border-radius: 8px;
    background: rgb(102, 126, 234, .08);
    color: #667eea;
    text-decoration: none;
    transition: all .2s;
}

@media (max-width: 767px) {
    body.sf-auth-page #sf-login-brand    { display: none !important; }
    body.sf-auth-page .sf-modern-footer  { display: none !important; }
    body.sf-auth-page .sf-brand-strip    { display: none !important; }
    body.sf-auth-page {
        min-height: auto;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        background: #fff !important;
    }
    body.sf-auth-page .sf-auth-wrap {
        width: 100%;
        max-width: none;
        min-height: auto;
        margin: 0 auto;
        padding: 0;
        display: flex;
        align-items: flex-start;
    }
    body.sf-auth-page .sf-auth-row {
        width: 100%;
        margin: 0;
        align-items: flex-start;
    }
    body.sf-auth-page .sf-auth-row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
    body.sf-auth-page .sf-auth-card {
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
        padding: 6px 28px max(14px, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    body.sf-auth-page .sf-auth-title {
        margin-bottom: 18px;
    }
    body.sf-auth-page .sf-auth-field {
        margin-bottom: 14px;
    }
    body.sf-auth-page .sf-auth-meta-row {
        margin-bottom: 14px;
    }
    body.sf-auth-page .cf-turnstile {
        margin-bottom: 14px;
    }
    .sf-auth-social-wrap {
        margin-top: 14px;
        padding-top: 12px;
    }
    body.sf-auth-page #sf-social-auth {
        margin-top: 14px !important;
    }
    .sf-auth-social-row {
        gap: 10px;
    }
    body.sf-auth-page .sf-auth-social-row.grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    body.sf-auth-page .sf-auth-social-button {
        width: 100%;
        min-height: 44px;
        padding: 8px;
        gap: 0;
        white-space: nowrap;
    }
    body.sf-auth-page .sf-auth-social-button svg {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }
    body.sf-auth-page .sf-auth-social-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    body.sf-auth-page .sf-auth-home-row {
        margin-top: 12px;
        padding-top: 12px;
    }
    body.sf-auth-page .sf-auth-home-icon {
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 768px) {
    #sf-login-brand { display: flex !important; }
}
