@import url('/css/pages/auth-login-v2.css');

.auth-shell-wide {
    width: min(100%, 1200px);
}

.auth-register-grid {
    align-items: stretch;
    row-gap: 1rem;
}

.auth-register-page .auth-card {
    width: 100%;
}

.auth-register-page .auth-card-head-left {
    text-align: left;
}

.auth-register-page .auth-card-head-left .auth-logo {
    margin-bottom: 0.95rem;
}

.auth-plan-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.toggle-button-width {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    max-width: fit-content;
}

.toggle-buttons .toggle-button {
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 8px !important;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #a3a3a3;
    font-size: 0.84rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-buttons .toggle-button:hover {
    border-color: rgba(245, 158, 11, 0.65);
    color: #ffffff;
    background: rgba(245, 158, 11, 0.08);
    transform: translateY(-1px);
}

.toggle-buttons .toggle-button.active {
    background: rgba(245, 158, 11, 0.16) !important;
    border-color: #f59e0b;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.12);
}

.plan-container {
    margin-inline: 0;
    gap: 1rem;
}

.plan-container:not(.d-none) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    justify-content: stretch;
}

.plan {
    border-radius: 8px;
    border: 1px solid #333;
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    color: #ffffff;
    width: 100%;
    margin: 0;
    padding: 1.1rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.plan:hover {
    border-color: rgba(245, 158, 11, 0.58);
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.16);
    transform: translateY(-2px);
}

.plan.featured {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.06) 100%);
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.2);
}

.plan-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.plan-cost {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    color: #f59e0b;
}

.plan-type {
    font-size: 0.8rem;
    color: #a3a3a3;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 0;
    display: grid;
    gap: 0.45rem;
}

.plan-features li {
    font-size: 0.83rem;
    color: #a3a3a3;
}

.plan-features li::before {
    content: '•';
    color: #f59e0b;
    margin-right: 0.35rem;
}

.retainer-card {
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    padding: 1rem;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.08);
}

.retainer-title {
    font-size: 1.08rem;
    color: #ffffff;
}

.retainer-divider {
    border-top: 1px solid rgba(245, 158, 11, 0.52);
    margin: 0.8rem auto 1rem;
}

.retainer-card .card-text {
    width: 170px;
    border: 1px solid rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.08);
    color: #ffffff;
}

.retainer-tier-text {
    font-size: 0.9rem;
}

.retainer-features {
    margin: 0;
    display: grid;
    gap: 0.55rem;
    color: #a3a3a3;
    font-size: 0.84rem;
}

.retainer-features .fa-circle-check {
    color: #f59e0b;
}

.retainer-card .btn,
.retainer-card .btn-primary,
.retainer-card .btn.btn-primary {
    min-height: 44px;
    border-radius: 8px !important;
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #0d0d0d !important;
    font-weight: 700;
}

.retainer-card .btn:hover,
.retainer-card .btn-primary:hover,
.retainer-card .btn.btn-primary:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
}

.auth-divider-line {
    margin: 0.2rem 0;
    border-color: rgba(255, 255, 255, 0.14);
    opacity: 1;
}

.register-note {
    color: #a3a3a3;
    font-size: 0.84rem;
    line-height: 1.55;
}

.auth-register-form {
    gap: 1rem;
}

.auth-register-form .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.auth-register-cta {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.auth-register-cta .register-submit-btn {
    width: 100%;
    min-height: 44px;
}

.auth-onboarding-note {
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    padding: 1rem;
    color: #a3a3a3;
    background: rgba(245, 158, 11, 0.08);
    font-size: 0.84rem;
}

.auth-onboarding-note strong {
    color: #ffffff;
}

.auth-onboarding-note ol {
    display: grid;
    gap: 0.35rem;
}

.auth-social-icons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.auth-social-icons a {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
}

.auth-social-icons .fab {
    margin: 0;
    font-size: 1.2rem !important;
    color: #a3a3a3;
    transition: color 0.2s ease;
}

.auth-social-icons a:hover .fab {
    color: #ffffff;
}

.auth-register-page .form-text {
    color: #a3a3a3;
}

.auth-register-page .invalid-feedback {
    color: #ef4444;
}

.iti {
    width: 100%;
}

.iti__country-list {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #ffffff;
    border-radius: 8px;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background-color: rgba(245, 158, 11, 0.12);
}

.iti__dial-code {
    color: #a3a3a3;
}

.phone-error {
    display: none;
}

.phone-error.show {
    display: block;
}

#rc-anchor-container,
#recaptcha > div > div > iframe {
    border-radius: 8px !important;
}

.auth-recaptcha-wrap {
    justify-content: flex-start;
    overflow-x: auto;
}

@media (max-width: 1199px) {
    .auth-plan-card {
        order: 2;
    }

    .auth-register-card {
        order: 1;
    }
}

@media (max-width: 768px) {
    .toggle-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .toggle-button-width {
        min-width: 0;
        width: 100%;
        text-align: center;
        max-width: none;
    }

    .plan-container:not(.d-none) {
        grid-template-columns: 1fr;
    }

    .plan {
        width: 100%;
    }

    .retainer-card .card-text {
        width: 100%;
    }

    .auth-social-icons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .toggle-buttons .toggle-button,
    .auth-register-cta .register-submit-btn,
    .retainer-card .btn {
        min-height: 44px;
    }
}
