:root {
    --bs-danger: #B91C43;
    --bs-danger-rgb: 185, 28, 67;
}
.account-selection-page {
    padding: 2rem 0;
    background-color: #f8f9fa;
}
.account-selection-container {
    max-width: 960px;
    padding: 0 15px;
}
.signin-box, .register-box {
    border: 2px solid var(--bs-danger);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: .375rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
@media (max-width: 767.98px) {
    .signin-box, .register-box { padding: 1rem; }
}
.signin-box h3, .register-box h3 {
    color: var(--bs-danger);
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 1.5rem;
}
@media (max-width: 767.98px) {
    .signin-box h3, .register-box h3 { font-size: 1.25rem; margin-bottom: 1rem; }
}
.form-label { font-weight: 600; }
.form-control, .form-select {
    background-color: #f8f9fa;
    width: 100%;
    font-size: 16px;
    -webkit-appearance: none;
}
select.form-select {
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}
.btn-danger {
    --bs-btn-bg: #B91C43;
    --bs-btn-border-color: #B91C43;
    --bs-btn-hover-bg: #A31839;
    --bs-btn-hover-border-color: #A31839;
    --bs-btn-active-bg: #8F1532;
    --bs-btn-active-border-color: #8F1532;
    width: auto;
    padding: 0.5rem 1.5rem;
}
@media (max-width: 767.98px) {
    .btn-danger { width: 100%; margin-top: 0.5rem; }
}
.reset-password-link a { color: var(--bs-danger); text-decoration: none; }
.reset-password-link a:hover { text-decoration: underline; }
.register-box strong { color: var(--bs-danger); }
.register-box p { margin-bottom: 1rem; }

.input-group { flex-wrap: wrap; }
@media (max-width: 767.98px) {
    .input-group .form-select { border-radius: 0.375rem; width: 100%; }
    .input-group .btn { border-radius: 0.375rem; margin-top: 0.5rem; width: 100%; }
}
@media (min-width: 768px) {
    .input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
    .input-group .form-select { border-top-right-radius: 0; border-bottom-right-radius: 0; }
}

.role-preview {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #e6eaf0;
    border-left: 4px solid var(--bs-danger);
    background: #fff;
    border-radius: .5rem;
    padding: .75rem 1rem;
    margin-top: .75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.role-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; background: rgba(var(--bs-danger-rgb), .08);
    border: 1px solid rgba(var(--bs-danger-rgb), .15);
}
.role-title { font-weight: 700; color: #0f172a; margin: 0; }
.role-desc { margin: 2px 0 0; color: #4b5563; font-size: .95rem; }

.modal-dialog-responsive {
    max-width: 600px;
    margin: 10vh auto 20px auto;
}

@media (max-width: 575.98px) {
    .modal-dialog-responsive {
        margin: 5vh 1rem;
    }
}

.modal-title {
    font-weight: 700;
    color: #0f172a;
}

.custom-select optgroup {
    font-size: 1.05rem;
    font-weight: 600;
    font-style: normal;
    color: #111827;
}

.custom-select optgroup[label="Planning Ahead"] {
    color: #0f172a;
}

.custom-select option {
    padding-left: 1rem;
    font-weight: 500;
    color: #0f172a;
}

.custom-select option:disabled {
    color: #9ca3af;
}

/* Button pulse animation */
@keyframes btnPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.btn-pulse {
    animation: btnPulse 0.6s ease-in-out;
}

.google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-height: 40px;
    position: relative;
    overflow: hidden;
}

.google-signin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.google-signin-btn:hover::before {
    left: 100%;
}

.google-signin-btn:hover {
    background-color: #f8f9fa;
    border-color: #c4c7c5;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16), 0 4px 8px rgba(60, 64, 67, 0.12);
    transform: translateY(-1px);
    color: #202124;
}

.google-signin-btn:active {
    background-color: #f1f3f4;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.24);
    transform: translateY(0);
}

.google-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.google-signin-btn:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08), 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.google-signin-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
    background-color: #f8f9fa;
    border-color: #dadce0;
}

.google-signin-btn[disabled]:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    transform: none;
}

.google-signin-btn[disabled]::before {
    display: none;
}

@media (max-width: 767.98px) {
    .google-signin-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .google-icon {
        width: 20px;
        height: 20px;
    }
}