/* ── Auth Common Layout (Login, Register, Forgot Password, Reset Password) ── */

body,
html {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

body {
    background-image: url("../Dashboard_Images/background_image.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Guest Layout Overrides */
.min-h-screen {
    min-height: 100vh !important;
    height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    background: none !important;
}

/* Removed display: none to ensure login form visibility */
.min-h-screen > div:first-child {
    display: flex !important;
}

.min-h-screen > div:last-child {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: none !important;
}

/* Main Wrapper */
.register-wrapper,
.verify-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* ── Left Side (Branding) ── */
.register-left,
.verify-left {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
}

.logo-icon,
.brand-logo {
    display: block;
    width: 360px !important;
    height: auto !important;
    margin-bottom: 50px;
}

.left-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
}

.left-content h1 {
    font-size: 46px;
    font-weight: 200;
    margin-bottom: 24px;
    font-family: "Tenor Sans", sans-serif !important;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.left-content .subtitle {
    font-size: 16px;
    line-height: 1.6;
    font-family: "Urbanist", sans-serif !important;
    margin-bottom: 40px;
    color: #c9a86a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.left-content p {
    font-size: 15px;
    font-family: "Urbanist", sans-serif !important;
    line-height: 1.6;
    opacity: 0.8;
    color: #e5e7eb;
}

.feature-item,
.secure-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    font-family: "Urbanist", sans-serif !important;
    font-size: 14px;
    padding: 5px 12px;
    max-width: max-content;
    border: 1px solid rgba(189, 189, 189, 0.3);
    border-radius: 15px;
    color: #bdbdbd;
}

.feature-dot,
.secure-dot {
    width: 8px;
    height: 8px;
    background: #c9a86a;
    border-radius: 50%;
}

/* ── Right Side (Form Card) ── */
.register-right,
.verify-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow-y: hidden;
    margin-top: -35px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.register-right::-webkit-scrollbar,
.verify-right::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.register-form-container,
.verify-card {
    width: 100%;
    max-width: 450px;
    height: auto !important;
    background: #181818;
    border-radius: 20px;
    /* Reduced slightly for more modern look */
    padding: 30px 40px;
    /* Refined padding */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    margin: auto 0;
    /* Natural centering */
}

.register-form-container h2,
.verify-card h2 {
    font-size: 25px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
    font-family: "Urbanist", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-subtitle,
.card-subtitle {
    font-size: 15px;
    color: #bdbdbd;
    text-align: center;
    font-family: "Urbanist", sans-serif;
    margin-bottom: 8px;
}

.divider,
.divider2 {
    position: relative;
    height: 1px;
    margin: 20px 0 32px;
}

.divider::before,
.divider::after,
.divider2::before,
.divider2::after {
    content: "";
    position: absolute;
    top: 0;
    width: 45%;
    height: 1px;
    background-color: #2a2a2a;
}

.divider::before,
.divider2::before {
    left: 0;
}

.divider::after,
.divider2::after {
    right: 0;
}

.divider2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #9ca3af;
    font-size: 13px;
    margin: 28px 0;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #bdbdbd !important;
    font-family: "Urbanist", sans-serif !important;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 10px 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #2f2f2f !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    color: #e5e7eb !important;
    font-family: "Urbanist", sans-serif !important;
    outline: none !important;
    padding-left: 10px !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.form-group input:focus,
.form-group input:active,
.form-group input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-bottom-color: #c9a86a !important;
}

/* Force override browser autofill blue/yellow background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #181818 inset !important;
    -webkit-text-fill-color: #e5e7eb !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ── Buttons ── */
.submit-btn,
.otp-btn,
x-primary-button button,
.flex.items-center button {
    width: 100% !important;
    padding: 14px !important;
    background: #c9a86a !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    letter-spacing: 0.5px !important;
    font-family: "Urbanist", sans-serif !important;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.submit-btn:hover {
    background: #c29d2e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
}

.already-registered {
    text-align: center !important;
    margin-top: 20px !important;
    font-size: 14px !important;
    margin-bottom: -10px;
    color: #9ca3af !important;
    font-family: "Urbanist", sans-serif !important;
}

.already-registered a {
    color: #c9a86a !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.back-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #c9a86a;
    font-family: "Urbanist", sans-serif;
}

.back-link a {
    color: #c9a86a;
    text-decoration: underline;
    font-weight: 500;
}

/* ── Toggle Password ── */
.password-wrapper {
    position: relative;
}

.password-toggle,
.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #c9a86a;
}

.password-toggle svg,
.toggle-password svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ── OTP / Verification Boxes ── */
.otp-container {
    text-align: center;
}

.otp-label {
    font-size: 14px;
    color: #bdbdbd;
    font-family: "Urbanist", sans-serif;
    margin-bottom: 16px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0 32px;
}

.otp-inputs input {
    width: 60px !important;
    height: 60px !important;
    background: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

.otp-inputs input:focus {
    border-color: #c9a86a !important;
    background: #1a1a1a !important;
    box-shadow: 0 0 15px rgba(201, 168, 106, 0.15) !important;
}

#msg {
    font-size: 13px;
    min-height: 18px;
    margin-bottom: 12px;
    font-family: "Urbanist", sans-serif;
    text-align: center;
}

#msg.error {
    color: #ef4444;
}

#msg.success {
    color: #4ade80;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .register-wrapper,
    .verify-wrapper {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }

    .register-left,
    .verify-left {
        min-height: 400px;
        padding: 40px;
    }

    .left-content h1 {
        font-size: 40px;
    }

    .register-right,
    .verify-right {
        padding: 40px 30px;
    }
}
