/* ==========================================================================
   BULKSMS.PW — AUTHENTICATION REDESIGN STYLESHEET
   Platform: Browser-based bulk SMS sending platform
   Theme: Crisp Light Left Form / Deep Navy Right Product Showcase
   Colors: Primary Brand Purple (#7c3aed), Deep Navy (#0a0f1d), Dark Navy Typography (#0f172a), Slate (#64748b)
   ========================================================================== */

:root {
    --brand-purple: #7c3aed;
    --brand-purple-hover: #6d28d9;
    --brand-purple-active: #5b21b6;
    --brand-purple-subtle: #f5f3ff;
    --brand-purple-border: #ddd6fe;

    --navy-dark: #0a0f1d;
    --navy-card: #111827;
    --navy-card-border: rgba(255, 255, 255, 0.1);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    --border-light: #e2e8f0;
    --border-input: #cbd5e1;
    --border-input-hover: #94a3b8;

    --focus-ring: 0 0 0 3px rgba(124, 58, 237, 0.14);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', var(--font-sans);
    --font-mono: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-sans);
    background-color: #ffffff;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   MASTER TWO-COLUMN LAYOUT
   ========================================================================== */
.auth-split-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ==========================================================================
   LEFT COLUMN: FORM SIDE (~50% width, max-width form ~420px)
   ========================================================================== */
.auth-form-column {
    flex: 1 1 50%;
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
    overflow-y: auto;
}

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

/* Prominent BulkSMS.pw Logo */
.auth-brand-header {
    margin-bottom: 32px;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.auth-brand-logo:hover {
    opacity: 0.9;
}

.auth-brand-logo img {
    height: 52px;
    width: auto;
    display: block;
}

/* Page Heading & Description */
.auth-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.6px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.auth-description {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Google 1-Click Fast Auth */
.social-auth-wrap {
    margin-bottom: 20px;
}

.btn-google-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    background: #ffffff;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: all 0.18s ease;
    cursor: pointer;
}

.btn-google-auth:hover {
    border-color: var(--border-input-hover);
    background: #fafafc;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.btn-google-auth svg {
    flex-shrink: 0;
}

/* Minimalist Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    padding: 0 12px;
}

/* Alert Messages */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 20px;
}

.auth-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-link-forgot {
    font-size: 13px;
    color: var(--brand-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.form-link-forgot:hover {
    color: var(--brand-purple-hover);
    text-decoration: underline;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    background: #ffffff;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: var(--brand-purple);
    outline: none;
    box-shadow: var(--focus-ring);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.15s ease;
}

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

/* Account Type Selector for Register */
.account-type-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 6px;
}

.account-type-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.15s ease;
}

.account-type-tab.active {
    background: #ffffff;
    color: var(--brand-purple);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Primary Submit Button */
.btn-primary {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    background: var(--brand-purple);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    background: var(--brand-purple-hover);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

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

/* Switch Form Prompt */
.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--brand-purple);
    font-weight: 600;
    text-decoration: none;
}

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

/* Left Column Footer */
.auth-footer-legal {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 24px;
    text-align: center;
    line-height: 1.5;
}

.auth-footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-footer-legal a:hover {
    color: var(--brand-purple);
}

/* OTP Code Input for verify.php */
.otp-input-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.otp-code-input {
    width: 100%;
    max-width: 260px;
    height: 52px;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 8px;
    font-family: var(--font-mono);
    background: #ffffff;
    border: 2px solid var(--border-input);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.otp-code-input:focus {
    border-color: var(--brand-purple);
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ==========================================================================
   RIGHT COLUMN: PRODUCT SHOWCASE & MESSAGING
   ========================================================================== */
.auth-visual-column {
    flex: 1 1 50%;
    min-height: 100vh;
    background-color: #070b16;
    background-image: 
        radial-gradient(ellipse at 70% 20%, rgba(124, 58, 237, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, rgba(8, 12, 24, 0.50) 0%, rgba(9, 13, 26, 0.82) 42%, rgba(6, 9, 18, 0.96) 100%),
        url('/assets/images/bg.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(48px, 6vw, 84px);
    overflow-y: auto;
    position: relative;
}

.visual-inner {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

/* Right Panel Headlines */
.visual-headline {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.6px;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.visual-subtext {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 34px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Three Product Benefits (Clean minimal cards, NO badges) */
.product-benefits {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(13, 19, 36, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.benefit-card:hover {
    background: rgba(18, 26, 48, 0.88);
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateX(3px);
}

.benefit-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.22);
    border: 1px solid rgba(167, 139, 250, 0.32);
    color: #c4b5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.05);
    background: rgba(124, 58, 237, 0.32);
    color: #ffffff;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.benefit-text {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 960px) {
    .auth-split-wrapper {
        flex-direction: column;
    }
    .auth-visual-column {
        display: none;
    }
    .auth-form-column {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 40px 24px;
    }
    .auth-form-container {
        max-width: 440px;
    }
}
