/* ============================================================
   THE DIGITAL MARKETING HQ — Login Page Styles
   css/login.css
   ============================================================ */

.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0f1225 0%, #1a1d3a 40%, #12152b 100%);
    font-family: 'Inter', sans-serif;
    padding: 1.5rem;
    box-sizing: border-box;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Brand */
.auth-brand {
    text-align: center;
    margin-bottom: 1.75rem;
    width: 100%;
}

.auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #ffffff;
}

.auth-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b5cf8, #6366f1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
}

.auth-brand-tagline {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

/* Card */
.auth-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

[data-theme="dark"] .auth-card {
    background: #1e2135;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1d2e;
    margin: 0 0 0.35rem;
    text-align: center;
}

.auth-card-desc {
    font-size: 0.85rem;
    color: #5a6178;
    margin: 0 0 1.25rem;
    text-align: center;
    line-height: 1.5;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e6f0;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #8b92a8;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.auth-tab:hover {
    color: #1a1d2e;
}

.auth-tab.active {
    color: #3b5cf8;
    border-bottom-color: #3b5cf8;
}

/* Forms */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.1rem;
    width: 100%;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1d2e;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #1a1d2e;
    background: #f4f6fb;
    border: 1px solid #e2e6f0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #3b5cf8;
    box-shadow: 0 0 0 3px rgba(59, 92, 248, 0.12);
    background: #ffffff;
}

.form-input::placeholder {
    color: #8b92a8;
}

/* Password field with eyelet */
.password-field {
    position: relative;
    width: 100%;
}

.password-field .form-input {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #8b92a8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #3b5cf8;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: #3b5cf8;
    color: #ffffff;
    border-color: #3b5cf8;
}

.btn-primary:hover {
    background: #2d4de0;
    box-shadow: 0 4px 14px rgba(59, 92, 248, 0.35);
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-full {
    width: 100%;
}

/* Links */
.auth-link-sm {
    font-size: 0.8rem;
    color: #3b5cf8;
    text-decoration: none;
    font-weight: 500;
}

.auth-link-sm:hover {
    text-decoration: underline;
}

/* Alert */
.auth-alert {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    box-sizing: border-box;
}

.auth-alert strong {
    display: block;
    margin-bottom: 0.15rem;
}

.auth-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #991b1b;
}

.auth-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #92400e;
}

.auth-alert.info {
    background: rgba(59, 92, 248, 0.1);
    border: 1px solid rgba(59, 92, 248, 0.25);
    color: #1e3a8a;
}

/* Footer link under card */
.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    width: 100%;
}

/* Mobile */
@media (max-width: 480px) {
    .auth-body {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2.5rem;
    }

    .auth-card {
        padding: 1.35rem;
    }
}