﻿/* wwwroot/css/register.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Replaced 'body' with the wrapper to work within _BaseLayout */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 30px 15px;
}

    /* Futuristic Background Glowing Accents */
    .auth-page-wrapper::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
        top: -100px;
        left: -100px;
        z-index: 0;
        border-radius: 50%;
        pointer-events: none;
    }

.signup-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
/*    max-width: 960px;*/
    max-width: 980px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Left Side: Advanced AI Visual Panel */
.ai-banner-side {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%), url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1000&auto=format&fit=crop') center/cover;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

    .ai-banner-side::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(6, 9, 19, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
    }

.ai-banner-content, .ai-features-list {
    position: relative;
    z-index: 2;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: -0.5px;
    margin-bottom: 40px;
}

    .brand-logo i {
        background: linear-gradient(135deg, #38bdf8, #2563eb);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 24px;
    }

.ai-banner-content h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #ffffff;
}

.ai-banner-content p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

.ai-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

    .ai-features-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: #cbd5e1;
        font-weight: 500;
    }

        .ai-features-list li i {
            color: #38bdf8;
            font-size: 14px;
        }

/* Right Side: Form Panel */
.form-side {
    padding: 40px;
    background: var(--bg-card, rgba(255, 255, 255, 0.01));
}

.form-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 6px;
}

.form-header p {
    color: var(--text-secondary, #94a3b8);
    font-size: 13px;
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 14px;
}

    .form-group.full {
        grid-column: span 2;
    }

    .form-group label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 5px;
        color: var(--text-secondary, #cbd5e1);
        letter-spacing: 0.3px;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 10px 14px;
        background: rgba(15, 23, 42, 0.1);
        border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
        border-radius: 8px;
        font-size: 13px;
        color: var(--text-primary, #fff);
        outline: none;
        transition: all 0.3s ease;
    }

        .form-group input::placeholder {
            color: var(--text-muted, #64748b);
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #38bdf8;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
        }

/* ASP.NET Validation Styles */
.text-danger {
    color: #ef4444;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

.validation-summary-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

    .validation-summary-errors ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .validation-summary-errors li {
        color: #ef4444;
        font-size: 12px;
    }

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    margin-top: 5px;
}

    .btn-primary:hover {
        opacity: 0.95;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
    }

.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-secondary, #94a3b8);
}

    .auth-switch a {
        color: #38bdf8;
        text-decoration: none;
        font-weight: 600;
    }

        .auth-switch a:hover {
            text-decoration: underline;
        }

@media (max-width: 768px) {
    .signup-wrapper {
        grid-template-columns: 1fr;
    }

    .ai-banner-side {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }
}
/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

    /* Add padding to the right so typing doesn't overlap the eye icon */
    .password-wrapper input {
        padding-right: 40px !important;
    }

.toggle-password {
    position: absolute;
    right: 14px;
    /* CHANGE 1: Remove top: 50% and use a fixed pixel amount based on the input's height */
    top: 19px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted, #64748b);
    transition: color 0.3s ease;
    font-size: 14px;
}

    .toggle-password:hover {
        color: #38bdf8;
    }


.iti__tel-input {
    width: 100% !important;
    padding-left: 90px !important; 
}

/* 4. Flag dropdown container ki width limit karo taaki bahar na jaaye */
.iti__country-list {
    background-color: var(--bg-card, #ffffff);
    color: var(--text-primary, #333333);
    border: 1px solid var(--border-color, #cccccc);
    border-radius: 8px;
    z-index: 100;
    max-width: 320px; /* Dropdown ko limit kar diya */
    white-space: normal; /* Lamba naam wrap ho jayega */
}

.iti__country {
    padding: 8px 10px;
    font-size: 13px;
}

    .iti__country:hover {
        background-color: rgba(56, 189, 248, 0.1);
    }

/* 5. Validation error message jo phone ke neeche aayega uski space fix */
.iti + .text-danger {
    margin-top: 5px;
    display: block;
}