:root {
    --login-bg-body: #2D2D2D;
    --login-bg-component: #383838;
    --login-bg-input: #4A4A4A;

    --login-text-primary: #FFFFFF;
    --login-text-secondary: #CCCCCC;
    --login-text-muted: #999999;

    --login-brand-primary: #0d6efd;
    --login-brand-primary-hover: #0b5ed7;

    --login-border-color: #555555;
}

[data-bs-theme="light"] {
    --login-bg-body: #F5F7FA;
    --login-bg-component: #FFFFFF;
    --login-bg-input: #FFFFFF;

    --login-text-primary: #212529;
    --login-text-secondary: #6C757D;
    --login-text-muted: #ADB5BD;

    --login-brand-primary: #0d6efd;
    --login-brand-primary-hover: #0b5ed7;

    --login-border-color: #DEE2E6;
}

body {
    background-color: var(--login-bg-body);
    color: var(--login-text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-container {
    background-color: var(--login-bg-component);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-logo {
    max-height: 90px;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

[data-bs-theme="light"] .login-container {
    box-shadow: 0 6px 20px rgba(33, 37, 41, 0.08);
}

.form-control {
    background-color: var(--login-bg-input);
    border: 1px solid var(--login-border-color);
    color: var(--login-text-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.form-control:focus {
    background-color: var(--login-bg-input);
    border-color: var(--login-brand-primary);
    color: var(--login-text-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: var(--login-text-muted);
}

/* Em inputs .form-floating o Bootstrap oculta o ::placeholder (transparente)
   e exibe o texto do <label> no lugar dele. Esse label herda do Bootstrap a cor
   escura padrão (--bs-body-color-rgb), que fica ilegível no tema escuro. */
.form-floating > label {
    color: var(--login-text-muted);
}

.input-group-text {
    background-color: var(--login-bg-input);
    border: 1px solid var(--login-border-color);
    color: var(--login-text-secondary);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--login-brand-primary);
    border-color: var(--login-brand-primary);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--login-brand-primary-hover);
    border-color: var(--login-brand-primary-hover);
}

.forgot-password {
    color: var(--login-text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 15px;
    display: block;
    text-align: center;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--login-brand-primary);
    text-decoration: underline;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Toggle Password Visibility Button */
.btn-toggle-password {
    cursor: pointer;
    background-color: var(--login-bg-input);
    border: 1px solid var(--login-border-color);
    border-left: none;
    color: var(--login-text-secondary);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}
.btn-toggle-password:hover {
    color: var(--login-text-primary);
}

.text-muted {
    color: var(--login-text-secondary) !important;
}

.btn-register {
    background-color: #198754;
    border-color: #198754;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-register:hover, .btn-register:focus, .btn-register:active {
    background-color: #157347;
    border-color: #146c43;
    color: white;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-gray);
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #555;
}

.separator::before {
    margin-right: .5em;
}

.separator::after {
    margin-left: .5em;
}

/* Registration Page Styles */
.register-container {
    max-width: 900px;
    width: 100%;
    background-color: #383838;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.plan-card {
    background-color: #4A4A4A;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: #aaa;
    transform: translateY(-2px);
}

.plan-card.selected {
    border-color: #28a745; /* Green for selection */
    background-color: rgba(40, 167, 69, 0.1);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

.plan-check {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #28a745;
    font-size: 1.2rem;
    display: none;
}

.plan-card.selected .plan-check {
    display: block;
}

.form-section-title {
    color: var(--text-white);
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Reactivate Subscription Page Styles */
.reactivate-container {
    max-width: 800px;
}

/* Enhanced Plan Card for Reactivation */
.plan-card-reactivate {
    background: #2c2c2c;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card-reactivate:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.plan-card-reactivate.recommended {
    /* border-color: #ffd700; */
    background: linear-gradient(145deg, #2c2c2c 0%, #3a3a3a 100%);
}

.recommended-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #ffd700;
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 20px;
    text-transform: uppercase;
}

.plan-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.plan-card-reactivate .plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.plan-card-reactivate .plan-price span {
    font-size: 0.9rem;
    font-weight: normal;
    color: #aaa;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    text-align: left;
    font-size: 0.9rem;
    color: #ccc;
}

.plan-features li {
    margin-bottom: 8px;
}

.plan-features li i {
    color: #28a745;
    margin-right: 8px;
}

.btn-select-plan {
    width: 100%;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px;
}

/* Tooltip styling override */
.tooltip-inner {
    background-color: var(--accent-blue);
}