/* ===================================
   CONSTRUCTEFY - UNIFIED STYLESHEET
   Combines glassmorphism and split-screen layouts
   =================================== */

:root {
    /* Colors */
    --bg-dark: #0f1014;
    --input-bg: #1f2125;
    --text-primary: #ffffff;
    --text-secondary: #8c8c8c;
    --accent-orange: #c77d35;
    --accent-orange-light: #d9923f;
    --accent-orange-hover: #b06d2d;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border-color: #333;

    /* Typography */
    --font-family: "Inter", sans-serif;
}

/* ===================================
   BASE RESET & TYPOGRAPHY
   =================================== */

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ===================================
   LAYOUT - CONTAINER
   =================================== */

.container {
    display: flex;
    min-height: 100vh;
}

/* ===================================
   HERO SECTION (Left side for glass, Right for split)
   =================================== */

.hero-section {
    flex: 1;
    background-image: url("../img/login-bg.png");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* For split-screen layout */
.split-layout .hero-section {
    background-color: #000;
    padding: 0;
    background-image: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================
   GLASS CARD (Glassmorphism variant)
   =================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ===================================
   LOGO
   =================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Split layout logo positioning */
.split-layout .logo {
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* ===================================
   WELCOME/HERO TEXT
   =================================== */

.welcome-title {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    font-style: italic;
}

.welcome-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.bullet.orange {
    background-color: #ff5722;
}

.bullet.yellow {
    background-color: #ffc107;
}

.bullet.blue {
    background-color: #2196f3;
}

/* ===================================
   LOGIN/FORM SECTION
   =================================== */

.login-section {
    flex: 0 0 500px;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

/* Split layout adjustments */
.split-layout .login-section {
    flex: 0 0 50%;
    padding: 3rem 4rem;
    justify-content: center;
    order: -1;
}

.form-wrapper {
    width: 100%;
    max-width: 380px;
}

.split-layout .form-wrapper {
    max-width: 360px;
}

/* ===================================
   TYPOGRAPHY - HEADINGS
   =================================== */

h1 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.split-layout .subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ===================================
   FORM ELEMENTS - INPUTS
   =================================== */

.input-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    color: #ccc;
    font-weight: 400;
}

.input-group {
    margin-bottom: 1rem;
}

.input-row {
    display: flex;
    background-color: #1a1c1f;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.2s;
    margin-bottom: 1.5rem;
}

.input-row:focus-within {
    border-color: #444;
}

.single-input {
    padding: 0;
    background-color: #1a1c1f;
}

/* Country Code Selector */
.country-code {
    background-color: #23262a;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    border-right: 1px solid #333;
}

.country-select {
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.country-select:hover {
    border-color: #444;
}

.flag {
    font-size: 1.2rem;
}

.chevron {
    color: var(--text-secondary);
    margin-left: auto;
}

/* Phone Input */
.phone-field,
.text-field {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

.phone-field::placeholder,
.text-field::placeholder {
    color: #666;
    font-family: inherit;
}

.phone-input {
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.phone-input:focus-within {
    border-color: #444;
}

.phone-input .prefix {
    color: var(--text-secondary);
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid #333;
}

.phone-input input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
}

.phone-input input::placeholder {
    color: #666;
}

/* ===================================
   BUTTONS
   =================================== */

.cta-button {
    width: 100%;
    background: linear-gradient(90deg, #c77d35, #d9923f);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: transform 0.2s, opacity 0.2s;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Split layout button */
.split-layout .cta-button {
    background: linear-gradient(90deg, #c77d35, #d9923f);
    border-radius: 30px;
    margin-top: 0.5rem;
}

.split-layout .cta-button:hover {
    opacity: 0.9;
}

/* Verify button variant */
.verify-btn {
    background: var(--accent-orange);
    color: #fff;
    margin-bottom: 1.5rem;
}

.verify-btn:hover {
    background: var(--accent-orange-hover);
}

/* ===================================
   DIVIDER
   =================================== */

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.glass-layout .divider {
    margin-bottom: 2rem;
}

.divider .line {
    flex: 1;
    height: 1px;
    background-color: #333;
}

.divider .text {
    padding: 0 15px;
}

.split-layout .divider .text {
    padding: 0 10px;
}

/* ===================================
   SOCIAL LOGIN BUTTONS
   =================================== */

.social-login {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.split-layout .social-login {
    gap: 10px;
}

.social-btn {
    width: 50px;
    height: 50px;
    background-color: var(--input-bg);
    border: 1px solid #333;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.split-layout .social-btn {
    background-color: var(--input-bg);
    border: none;
    border-radius: 8px;
}

.social-btn:hover {
    background-color: #2a2d33;
    border-color: #444;
}

/* ===================================
   FOOTER TEXT & LINKS
   =================================== */

.footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.signup-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
}

.signup-link:hover {
    text-decoration: underline;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-primary);
}

/* ===================================
   OTP VERIFICATION
   =================================== */

.otp-row {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.otp-digit {
    width: 100%;
    max-width: 55px;
    aspect-ratio: 1;
    background-color: #2a2d33;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.otp-digit:focus {
    border-color: var(--accent-orange);
    background-color: #333;
}

.resend-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.resend-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
}

.resend-link:hover {
    text-decoration: underline;
}

.support-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    margin-top: auto;
}

.support-link {
    color: var(--text-secondary);
    text-decoration: underline;
}

.support-link:hover {
    color: var(--text-primary);
}

/* ===================================
   SLIDER INDICATORS
   =================================== */

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5rem;
}

.slider-dash {
    width: 50px;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    opacity: 0.8;
}

.slider-dash.active {
    background-color: var(--accent-orange);
    opacity: 1;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .split-layout .login-section {
        flex: 0 0 55%;
        padding: 3rem;
    }
}

@media (max-width: 1024px) {
    .login-section {
        flex: 0 0 450px;
        padding: 3rem;
    }

    .split-layout .login-section {
        flex: 0 0 50%;
        padding: 2.5rem;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .hero-section {
        flex: none;
        min-height: 50vh;
        align-items: center;
    }

    .glass-card {
        padding: 2rem;
        margin: 1rem;
    }

    .login-section {
        flex: none;
        width: 100%;
        padding: 3rem 2rem;
    }

    .split-layout .hero-section {
        min-height: 300px;
        order: 0;
    }

    .split-layout .login-section {
        order: 0;
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .glass-layout .container {
        flex-direction: column;
    }

    .split-layout .container {
        flex-direction: column;
    }

    .hero-section {
        min-height: 45vh;
    }

    .split-layout .hero-section {
        min-height: 250px;
        order: 1;
    }

    .split-layout .login-section {
        order: 0;
        width: 100%;
        padding: 2.5rem 2rem;
    }

    .split-layout .logo {
        margin-bottom: 3rem;
    }

    .welcome-title {
        font-size: 2.5rem;
    }

    h1,
    h2 {
        font-size: 1.5rem;
    }

    .slider-indicators {
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 2rem 1.5rem;
    }

    .split-layout .login-section {
        padding: 2rem 1.5rem;
    }

    .split-layout .hero-section {
        min-height: 200px;
    }

    h1,
    h2 {
        font-size: 1.4rem;
    }

    .split-layout .logo {
        margin-bottom: 2rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .otp-digit {
        max-width: 45px;
        font-size: 1.2rem;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .cta-button {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .slider-indicators {
        margin-top: 2rem;
    }

    .slider-dash {
        width: 40px;
    }
}