/* ==========================================================================
   Dushly Marketplace - Modern Authentication Styles
   ========================================================================== */

:root {
    --auth-bg: #F8F8F6;
    --auth-card-bg: #ffffff;
    --auth-border: #E1E3DF;
    --auth-ink: #222222;
    --auth-ink-muted: #595959;
    --auth-ink-subtle: #757575;
    --auth-orange: #F1641E;
    --auth-orange-hover: #D75514;
    --auth-focus: rgba(241, 100, 30, 0.15);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--auth-bg);
    padding: 2rem 1.25rem;
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.auth-card {
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--auth-orange);
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    border-radius: 14px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(241, 100, 30, 0.25);
    text-decoration: none;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--auth-ink);
    margin-bottom: 0.35rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.auth-header p {
    color: var(--auth-ink-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
    font-size: 0.825rem;
    color: var(--auth-ink);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    color: var(--auth-ink);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.15s ease-in-out;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 3px var(--auth-focus);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--auth-ink-subtle);
    margin-top: 0.35rem;
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 0.875rem;
    top: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--auth-ink-subtle);
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: var(--auth-ink);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--auth-ink-muted);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--auth-orange);
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.forgot-password {
    color: var(--auth-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.forgot-password:hover {
    color: var(--auth-orange-hover);
    text-decoration: underline;
}

.auth-btn-primary {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--auth-orange);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s ease, transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(241, 100, 30, 0.2);
}

.auth-btn-primary:hover {
    background: var(--auth-orange-hover);
    transform: translateY(-1px);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-divider {
    text-align: center;
    margin: 1.75rem 0;
    color: var(--auth-ink-subtle);
    font-size: 0.8125rem;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    height: 1px;
    background: var(--auth-border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    color: var(--auth-ink);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.social-btn:hover {
    background: #F8F8F6;
    border-color: #C2C5BF;
}

.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #EDEDEB;
    font-size: 0.875rem;
    color: var(--auth-ink-muted);
}

.auth-footer a {
    color: var(--auth-orange);
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.25rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-home-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
}

.back-home-link a {
    color: var(--auth-ink-subtle);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s ease;
}

.back-home-link a:hover {
    color: var(--auth-ink);
}

.alert-auth-error {
    background: #FDE8E8;
    border: 1px solid #F8B4B4;
    color: #9B1C1C;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
