/* BBMALYA Auth Pages Styles */
/* ============================== */

/* Auth Page Base */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.auth-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* Auth Header */
.bb-header-auth {
    background: transparent;
    position: relative;
    border-bottom: none;
}

.auth-link {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

/* Auth Main */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    padding: 60px 68px 40px;
}

@media (max-width: 600px) {
    .auth-card {
        padding: 40px 24px;
        background: rgba(0, 0, 0, 0.85);
    }
}

.auth-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 28px;
    color: white;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 24px 16px 10px;
    font-size: 16px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: white;
    outline: none;
    transition: background 0.15s ease;
}

.form-input:focus {
    background: #454545;
}

.form-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c8c;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.15s ease;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: 14px;
    font-size: 11px;
    color: #b3b3b3;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8c8c8c;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.password-toggle:hover {
    color: white;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    background: var(--bb-red);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.15s ease;
}

.auth-btn:hover {
    background: #f40612;
}

.auth-btn-secondary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: rgba(109, 109, 110, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.15s ease;
}

.auth-btn-secondary:hover {
    background: rgba(109, 109, 110, 0.5);
}

/* Auth Options */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b3b3b3;
    font-size: 13px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bb-red);
}

.need-help {
    color: #b3b3b3;
    font-size: 13px;
}

.need-help:hover {
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #3d3d3d;
}

.auth-divider span {
    padding: 0 16px;
    color: #8c8c8c;
    font-size: 13px;
}

/* Links */
.forgot-link {
    display: block;
    text-align: center;
    color: #b3b3b3;
    font-size: 13px;
    margin-top: 16px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-signup {
    margin-top: 16px;
    color: #8c8c8c;
    font-size: 16px;
}

.auth-signup a {
    color: white;
    font-weight: 600;
}

.auth-signup a:hover {
    text-decoration: underline;
}

.auth-captcha {
    margin-top: 16px;
    color: #8c8c8c;
    font-size: 13px;
    line-height: 1.5;
}

.auth-captcha a {
    color: #0071eb;
}

/* Auth Footer */
.auth-footer {
    background: rgba(0, 0, 0, 0.75);
    padding: 30px 0;
    margin-top: auto;
}

.footer-contact {
    display: block;
    color: #8c8c8c;
    font-size: 16px;
    margin-bottom: 30px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: #8c8c8c;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-lang {
    margin-bottom: 20px;
}

.lang-select {
    background: transparent;
    border: 1px solid #3d3d3d;
    color: white;
    padding: 12px 40px 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.footer-copy {
    color: #8c8c8c;
    font-size: 13px;
}

/* ==============================
   REGISTER PAGE
   ============================== */
.register-page .auth-main {
    align-items: flex-start;
    padding-top: 100px;
}

.register-container {
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    padding: 40px;
}

@media (max-width: 600px) {
    .register-container {
        padding: 30px 20px;
    }
}

.step-indicator {
    margin-bottom: 8px;
}

.step-text {
    text-transform: uppercase;
    font-size: 13px;
    color: #8c8c8c;
}

.step-text b {
    color: white;
}

.step-desc {
    color: #8c8c8c;
    font-size: 16px;
    margin: 8px 0 24px;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.plan-features li {
    color: white;
    font-size: 18px;
    padding: 8px 0;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.plan-card {
    background: #1a1a1a;
    border: 2px solid #3d3d3d;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-card:hover {
    border-color: #737373;
}

.plan-card.selected {
    border-color: var(--bb-red);
    background: rgba(229, 9, 20, 0.1);
}

.plan-badge {
    background: linear-gradient(135deg, #ae0d13, #e50914);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: inline-block;
}

.plan-badge.most-popular {
    background: linear-gradient(135deg, #4d1b7b, #7b2cbf);
}

.plan-price {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: #8c8c8c;
}

.plan-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-details li {
    color: #8c8c8c;
    font-size: 12px;
    padding: 4px 0;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #8c8c8c;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 12px;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--bb-red);
}

.checkbox-label a {
    color: #0071eb;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .auth-btn,
.form-actions .auth-btn-secondary {
    flex: 1;
    margin-top: 0;
}

/* Payment */
.payment-summary {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #b3b3b3;
}

.summary-row span:last-child {
    color: white;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #1a1a1a;
    border: 2px solid #3d3d3d;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: #737373;
}

.payment-method.selected {
    border-color: var(--bb-red);
}

.pm-icon {
    font-size: 24px;
}

.payment-form {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-terms {
    color: #8c8c8c;
    font-size: 12px;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

/* Forgot Password */
.forgot-card {
    max-width: 400px;
}

.success-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 16px;
}

.email-display {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: 600;
    margin: 16px 0;
}

.resend-text {
    color: #8c8c8c;
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
}

.resend-text a {
    color: #0071eb;
}

/* ==============================
   ACCOUNT PAGE
   ============================== */
.account-main {
    padding: 100px 0 60px;
    min-height: 100vh;
}

.account-title {
    font-size: 48px;
    font-weight: 500;
    margin: 0 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #333;
}

.account-grid {
    display: grid;
    gap: 24px;
}

.account-section {
    padding-bottom: 24px;
    border-bottom: 1px solid #333;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 16px;
    color: #8c8c8c;
}

.section-icon {
    font-size: 24px;
}

.account-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.card-row:last-child {
    border-bottom: none;
}

.card-row.clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.card-row.clickable:hover {
    background: #252525;
}

.card-info p {
    margin: 0;
}

.info-main {
    color: white;
    font-weight: 500;
}

.info-sub {
    color: #8c8c8c;
    font-size: 13px;
    margin-top: 4px !important;
}

.card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.card-actions a {
    color: #0071eb;
    font-size: 14px;
}

.card-actions a:hover {
    text-decoration: underline;
}

.arrow {
    color: #8c8c8c;
    font-size: 20px;
}

/* Plan Summary */
.plan-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    padding: 20px;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.plan-badge {
    background: linear-gradient(135deg, #4d1b7b, #7b2cbf);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.change-plan {
    color: #0071eb;
    font-weight: 600;
}

.change-plan:hover {
    text-decoration: underline;
}

/* Plan Details */
.plan-details-card {
    padding: 0;
}

.plan-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.plan-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #8c8c8c;
}

.detail-value {
    color: white;
    font-weight: 500;
}

/* Profiles */
.profiles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #1a1a1a;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.profile-item:hover {
    background: #252525;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.profile-avatar.main {
    background: linear-gradient(135deg, #e50914, #b20710);
}

.profile-avatar.kids {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.profile-avatar.add {
    background: #3d3d3d;
    font-size: 24px;
}

.profile-info p {
    margin: 0;
}

.profile-name {
    color: white;
    font-weight: 500;
}

.profile-settings {
    color: #8c8c8c;
    font-size: 13px;
    margin-top: 4px !important;
}

.profile-edit {
    margin-left: auto;
    color: #0071eb;
    font-size: 14px;
}

.profile-edit:hover {
    text-decoration: underline;
}

.add-profile {
    justify-content: flex-start;
    gap: 16px;
}

.add-profile .profile-name {
    color: #8c8c8c;
}

/* Account Footer */
.account-footer {
    margin-top: 40px;
    text-align: center;
}

.cancel-link {
    color: #8c8c8c;
    font-size: 14px;
}

.cancel-link:hover {
    color: white;
    text-decoration: underline;
}

/* Hidden */
.hidden {
    display: none !important;
}