.auth_modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth_modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.auth_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.auth_content {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 1rem;
    background: #1e2024;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.auth_modal.active .auth_content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.auth_close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth_close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.auth_close svg {
    width: 20px;
    height: 20px;
}

.auth_header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}

.auth_logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.auth_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem;
}

.auth_subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

.auth_body {
    padding: 0 2rem 1.5rem;
}

.auth_google_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    color: #1f1f1f;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth_google_btn:hover:not(:disabled) {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth_google_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.google_icon {
    width: 22px;
    height: 22px;
}

.auth_divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth_divider::before,
.auth_divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth_divider span {
    padding: 0 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.auth_policy_buttons {
    display: flex;
    gap: 0.75rem;
}

.auth_policy_btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth_policy_btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.auth_policy_btn svg {
    width: 16px;
    height: 16px;
}

.auth_footer {
    padding: 1.25rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth_checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.auth_checkbox input {
    display: none;
}

.checkbox_mark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 1px;
    transition: all 0.15s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth_checkbox input:checked + .checkbox_mark {
    background: #d99a1e;
    border-color: #d99a1e;
}

.auth_checkbox input:checked + .checkbox_mark::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox_text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.checkbox_text a {
    color: #d99a1e;
    text-decoration: none;
}

.checkbox_text a:hover {
    text-decoration: underline;
}

.policy_modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.policy_modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.policy_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.policy_content {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    margin: 1rem;
    background: #1e2024;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.policy_modal.active .policy_content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.policy_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.policy_title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.policy_close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.15s ease;
}

.policy_close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.policy_close svg {
    width: 20px;
    height: 20px;
}

.policy_body {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    scrollbar-width: none;
}

.policy_body::-webkit-scrollbar {
    display: none;
}

.policy_section {
    margin-bottom: 1.5rem;
}

.policy_section:last-child {
    margin-bottom: 0;
}

.policy_section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem;
}

.policy_section p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

.policy_section ul {
    margin: 0;
    padding-left: 1.25rem;
}

.policy_section li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 0.35rem;
}

.policy_section a {
    color: #d99a1e;
    text-decoration: none;
}

.policy_section a:hover {
    text-decoration: underline;
}

.policy_footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.policy_accept_btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: #d99a1e;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.policy_accept_btn:hover {
    background: #e5a520;
}
