/* ==========================================================================
   PublicityPoster / Brandsly Modern Auth Styles
   ========================================================================== */
body {
    background: #0f172a url(../images/loginbg.jpg) center center / cover no-repeat fixed;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.auth-page-wrapper {
    position: relative;
    z-index: 10;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
    padding: 28px 32px !important;
    animation: authFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header-top {
    font-size: 13px;
}

.auth-back-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.auth-back-link:hover {
    color: #406FD9;
    background: #edf2f7;
    border-color: #cbd5e1;
}

.auth-badge-secure {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

.auth-logo-box {
    padding: 6px 0 10px 0;
}
.auth-logo-img {
    max-height: 48px;
    max-width: 220px;
    object-fit: contain;
    display: inline-block;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0;
}

/* Segmented Tabs */
.auth-segmented-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.auth-tab-btn.active {
    background: #ffffff;
    color: #406FD9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.auth-tab-btn:hover:not(.active) {
    color: #0f172a;
}

/* Phone Input Wrapper */
.auth-phone-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    height: 48px;
    background: #ffffff;
    transition: all 0.2s ease;
    position: relative;
}
.auth-phone-wrapper:focus-within {
    border-color: #406FD9;
    box-shadow: 0 0 0 3px rgba(64, 111, 217, 0.15);
}

.country-dropdown2 {
    position: relative;
    height: 100%;
    flex-shrink: 0;
}

.country-select {
    background: #f8fafc;
    border: none;
    border-right: 1.5px solid #e2e8f0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.country-select:hover {
    background: #f1f5f9;
}

.selected-country {
    display: flex;
    align-items: center;
}

.dropdown2-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    width: 220px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    padding: 6px;
}
.dropdown2-menu.show {
    display: block;
}
.dropdown2-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.dropdown2-item:hover {
    background: #f1f5f9;
}
.dropdown2-item.selected {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.auth-phone-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    height: 100%;
    padding: 0 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background: transparent;
}

/* Primary Auth Button */
.btn-auth-primary {
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22C2CA 0%, #406FD9 100%);
    border: none;
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(64, 111, 217, 0.35);
    transition: all 0.25s ease;
}
.btn-auth-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(34, 194, 202, 0.45);
    filter: brightness(1.06);
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #edf2f7;
    z-index: 1;
}
.auth-divider span {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* Google Button */
.btn-auth-google {
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b !important;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-auth-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* OTP Box Inputs */
.otp-box-input {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    transition: all 0.2s ease;
}
.otp-box-input:focus {
    border-color: #406FD9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 111, 217, 0.18);
}

/* Auth Input */
.auth-input {
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    padding: 0 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}
.auth-input:focus {
    border-color: #406FD9;
    box-shadow: 0 0 0 3px rgba(64, 111, 217, 0.15);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-card {
        padding: 24px 20px !important;
        border-radius: 16px !important;
    }
    .auth-title {
        font-size: 20px;
    }
    .otp-box-input {
        width: 38px;
        height: 44px;
        font-size: 18px;
    }
}