/**
 * X (Twitter) style dark theme for guest-layout-v2
 * Applied to all auth pages: login, register, forgot-password, reset-password, verify-otp, signup-success
 */

/* Base: dark background when using guest-v2 layout */
body.guest-v2-dark {
    background-color: #000000 !important;
    color: #e7e9ea;
}

body.guest-v2-dark .flex-root {
    background-color: #000000;
}

/* Two-column page layout: 6 columns aside + 6 columns content (12-col grid) */
.guest-v2-page {
    min-height: 100vh;
    background-color: #000000;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

@media (min-width: 992px) {
    .guest-v2-page {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: 1fr;
    }
}

/* Left column: branding / logo (6 columns on desktop) */
.guest-v2-aside {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 40vh;
    background-color: #000000;
}

@media (min-width: 992px) {
    .guest-v2-aside {
        grid-column: 1 / 7;  /* columns 1-6 */
        min-height: 100vh;
        padding: 3rem;
    }
}

/* Right column: content / form (6 columns on desktop) */
.guest-v2-content {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem 4rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .guest-v2-content {
        grid-column: 7 / -1;  /* columns 7-12 */
        padding: 2rem 4rem 4rem;
        margin: 0;
        max-width: 520px;
        min-width: 320px;
        align-items: stretch;
    }
}

.guest-v2-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #fff;
}

.guest-v2-logo-wrap:hover {
    color: #fff;
}

.guest-v2-logo-img {
    width: 80px;
    height: auto;
}

@media (min-width: 992px) {
    .guest-v2-logo-img {
        width: 120px;
    }
}

.guest-v2-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
}

@media (min-width: 992px) {
    .guest-v2-logo-text {
        font-size: 2.25rem;
    }
}

.guest-v2-title {
    font-size: 2rem;
    font-weight: 800;
    color: #e7e9ea;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .guest-v2-title {
        font-size: 2.75rem;
    }
}

.guest-v2-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e7e9ea;
    margin-bottom: 2rem;
}

/* Form styles */
.guest-v2-form {
    width: 100%;
}

.guest-v2-form .form-group {
    margin-bottom: 1rem;
}

.guest-v2-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #e7e9ea;
    margin-bottom: 0.25rem;
}

.guest-v2-form .form-control,
.guest-v2-form .form-control-solid,
.guest-v2-form select {
    width: 100%;
    background-color: #202327 !important;
    border: 1px solid #536471;
    border-radius: 4px;
    color: #e7e9ea !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.guest-v2-form .form-control:focus,
.guest-v2-form .form-control-solid:focus,
.guest-v2-form select:focus {
    outline: none;
    border-color: #1d9bf0;
    box-shadow: 0 0 0 1px #1d9bf0;
}

.guest-v2-form .form-control::placeholder {
    color: #71767b;
}

.guest-v2-form .form-text.text-muted {
    color: #71767b !important;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.guest-v2-form .text-danger {
    color: #f4212e !important;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.guest-v2-form a {
    color: #1d9bf0;
    text-decoration: none;
}

.guest-v2-form a:hover {
    text-decoration: underline;
}

.guest-v2-checkbox-label {
    color: #e7e9ea;
    font-size: 0.9375rem;
}

.guest-v2-checkbox-label input[type="checkbox"] {
    accent-color: #1d9bf0;
    margin-right: 0.5rem;
}

/* Buttons */
.guest-v2-btn-primary {
    display: block;
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 9999px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    text-align: center;
}

.guest-v2-btn-primary:hover {
    background-color: #e7e9ea;
    color: #000;
}

.guest-v2-btn-outline {
    display: block;
    width: 100%;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #536471;
    border-radius: 9999px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.guest-v2-btn-outline:hover {
    background-color: rgba(231, 233, 234, 0.1);
    color: #fff;
}

/* Legal text */
.guest-v2-legal {
    font-size: 0.6875rem;
    color: #71767b;
    margin-top: 1rem;
    line-height: 1.4;
}

.guest-v2-legal a {
    color: #1d9bf0;
    text-decoration: none;
}

.guest-v2-legal a:hover {
    text-decoration: underline;
}

/* Divider */
.guest-v2-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
}

.guest-v2-divider::before,
.guest-v2-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #536471;
}

.guest-v2-divider span {
    color: #e7e9ea;
    font-size: 0.9375rem;
    font-weight: 400;
}

/* "Already have an account?" section */
.guest-v2-already {
    font-size: 1rem;
    font-weight: 700;
    color: #e7e9ea;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Alerts */
.guest-v2-alerts .alert {
    background-color: #202327;
    border: 1px solid #536471;
    border-radius: 8px;
    color: #e7e9ea;
}

.guest-v2-alerts .alert-success {
    border-color: #00ba7c;
}

.guest-v2-alerts .alert-danger {
    border-color: #f4212e;
}

.guest-v2-alerts .alert-text {
    color: inherit;
}

.guest-v2-alerts .alert ul {
    margin-bottom: 0;
}

/* Intl-tel-input overrides for dark theme */
body.guest-v2-dark .iti {
    width: 100%;
}

body.guest-v2-dark .iti__flag-container {
    display: flex;
    align-items: center;
}

body.guest-v2-dark .iti input {
    padding-left: 90px !important;
    background-color: #202327 !important;
    border: 1px solid #536471;
    color: #e7e9ea !important;
}

/* Content area text (for signup-success, etc.) */
.guest-v2-content .text-success {
    color: #00ba7c !important;
}

.guest-v2-content .text-gray-700,
.guest-v2-content .text-muted {
    color: #71767b !important;
}

.guest-v2-content .fs-4 {
    color: #e7e9ea;
}
