/* Socialvex Authentication Pages Redesign Stylesheet (2026 Modern SaaS UI/UX) */

:root {
    --auth-radius-lg: 24px;
    --auth-radius-md: 14px;
    --auth-radius-sm: 8px;
    
    --auth-bg-page: var(--bg-secondary);
    --auth-bg-card: var(--bg-primary);
    --auth-border: 1px solid var(--border-color);
    --auth-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.08);
    
    --auth-text-muted: var(--text-secondary);
    --auth-success: #10b981;
}

[data-theme="dark"] {
    --auth-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    --auth-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Authentication Page Container */
.auth-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--auth-bg-page);
    color: var(--text-primary);
    position: relative;
    padding: 40px 20px;
}

/* Tasteful Top Utility Header (Home & Theme Toggle) */
.auth-utility-bar {
    position: absolute;
    top: 24px;
    right: 24px;
    left: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--auth-radius-sm);
    background: var(--auth-bg-card);
    border: var(--auth-border);
    box-shadow: var(--auth-shadow);
    transition: all 0.2s ease;
}

.auth-home-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Central Redesigned Auth Card Wrapper */
.auth-wrapper {
    width: 100% !important;
    max-width: 460px !important;
    background: var(--auth-bg-card);
    border: var(--auth-border);
    box-shadow: var(--auth-shadow);
    border-radius: var(--auth-radius-lg);
    padding: 44px !important;
    margin: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.auth-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.auth-header .title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.auth-header .description {
    font-size: 13.5px;
    color: var(--auth-text-muted);
    line-height: 1.4;
}

/* Premium Form Elements */
.auth-form {
    gap: 18px !important;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    height: 48px !important;
    border-radius: var(--auth-radius-md) !important;
    border: var(--auth-border) !important;
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 18px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    background-color: var(--bg-primary) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 12%, transparent) !important;
}

/* Password input wrapper with inline visibility toggle */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-control {
    padding-right: 48px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

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

/* Captcha UI refresh */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-text {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--bg-secondary);
    border: var(--auth-border);
    border-radius: var(--auth-radius-md);
    padding: 0 20px;
    letter-spacing: 4px;
    user-select: none;
}

.captcha-refresh {
    width: 48px;
    height: 48px;
    border-radius: var(--auth-radius-md);
    border: var(--auth-border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.captcha-refresh:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-primary);
}

/* Action button modernize */
.auth-form .btn-primary {
    height: 48px !important;
    border-radius: var(--auth-radius-md) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
}

.auth-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
}

/* Terms and Policy checkbox section */
.auth-terms {
    margin-top: 4px;
    font-size: 12px;
    color: var(--auth-text-muted);
    line-height: 1.5;
    text-align: center;
}

.auth-terms-link {
    color: var(--text-primary);
    text-decoration: underline;
    font-weight: 600;
}

.auth-terms-link:hover {
    color: var(--primary-color);
}

/* Auth Card Footer */
.auth-footer {
    border-top: var(--auth-border);
    margin-top: 14px;
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-footer-line {
    font-size: 13.5px;
    color: var(--auth-text-muted);
}

.auth-footer-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

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

.auth-footer-link--block {
    display: inline-block;
    font-size: 13px;
    color: var(--auth-text-muted);
    font-weight: 500;
}

.auth-footer-link--block:hover {
    color: var(--primary-color);
}

/* Multi-field grid for Register Page */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-container {
        padding: 60px 16px 20px;
    }
    
    .auth-wrapper {
        padding: 30px 20px !important;
    }
    
    .auth-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
