/* ========== LOGIN PAGE STYLES ========== */
.astrology-login,
.astrology-box-register {
    min-height: 100vh;
    /* background: linear-gradient(135deg, #1a0933 0%, #2d0b5a 100%); */
    background: linear-gradient(135deg, #16121c 0%, #543978 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.stars,
.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    /* background: #000
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900" viewBox="0 0 1600 900"><circle cx="100" cy="50" r="1" fill="white"/><circle cx="300" cy="150" r="1" fill="white"/><circle cx="500" cy="80" r="1.5" fill="white"/><circle cx="700" cy="120" r="1" fill="white"/><circle cx="900" cy="70" r="1.5" fill="white"/><circle cx="1100" cy="100" r="1" fill="white"/><circle cx="1300" cy="60" r="1.5" fill="white"/><circle cx="1500" cy="90" r="1" fill="white"/></svg>')
        repeat; */
    z-index: 0;
}

.twinkling {
    background: transparent
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900" viewBox="0 0 1600 900"><circle cx="50" cy="30" r="0.5" fill="white" opacity="0.3"/><circle cx="250" cy="130" r="0.5" fill="white" opacity="0.3"/><circle cx="450" cy="60" r="0.8" fill="white" opacity="0.3"/><circle cx="650" cy="110" r="0.5" fill="white" opacity="0.3"/><circle cx="850" cy="60" r="0.8" fill="white" opacity="0.3"/><circle cx="1050" cy="90" r="0.5" fill="white" opacity="0.3"/><circle cx="1250" cy="50" r="0.8" fill="white" opacity="0.3"/><circle cx="1450" cy="80" r="0.5" fill="white" opacity="0.3"/></svg>')
        repeat;
    z-index: 1;
    animation: twinkle 5s infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.8;
    }
}

.astrology-card {
    background: rgba(26, 9, 51, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(106, 69, 209, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(106, 69, 209, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.astrology-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(106, 69, 209, 0.1) 0%,
        transparent 70%
    );
    z-index: -1;
}

.zodiac-animation {
    position: relative;
    height: 80px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.constellation {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="white"/><circle cx="50" cy="20" r="1" fill="white"/><circle cx="80" cy="30" r="1" fill="white"/><circle cx="30" cy="60" r="1" fill="white"/><circle cx="70" cy="60" r="1" fill="white"/><circle cx="20" cy="80" r="1" fill="white"/><circle cx="50" cy="70" r="1" fill="white"/><circle cx="80" cy="80" r="1" fill="white"/></svg>');
    animation: rotate 20s linear infinite;
}

.zodiac-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 8px rgba(106, 69, 209, 0.6));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.astrology-title {
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.zodiac-text {
    color: #9e77ed;
    font-weight: 700;
}

.astrology-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.social-login {
    margin-bottom: 1.5rem;
}

.google-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    padding: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider-text {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.astrology-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.astrology-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(106, 69, 209, 0.3);
    color: white;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.astrology-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #6a45d1;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(106, 69, 209, 0.25);
}

.astrology-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.astrology-input-icon {
    background: rgba(106, 69, 209, 0.1);
    border: 1px solid rgba(106, 69, 209, 0.3);
    border-right: none;
    color: #9e77ed;
    border-radius: 12px 0 0 12px;
}

.astrology-toggle-password {
    background: rgba(106, 69, 209, 0.1);
    border: 1px solid rgba(106, 69, 209, 0.3);
    border-left: none;
    color: #9e77ed;
    border-radius: 0 12px 12px 0;
}

.astrology-checkbox {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(106, 69, 209, 0.3);
}

.astrology-checkbox:checked {
    background-color: #6a45d1;
    border-color: #6a45d1;
}

.astrology-remember {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.astrology-forgot {
    color: #9e77ed;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.astrology-forgot:hover {
    color: #b89cf5;
    text-decoration: underline;
}

.astrology-btn {
    background: linear-gradient(135deg, #6a45d1 0%, #4a1d96 100%);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.astrology-btn:hover {
    background: linear-gradient(135deg, #7d55e8 0%, #5b25b5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 69, 209, 0.4);
    color: #e3e3e3;
}

.astrology-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 70%
    );
    transform: scale(0);
    transition: transform 0.5s ease;
}

.astrology-btn:hover::after {
    transform: scale(1);
}

.astrology-register {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.astrology-link {
    color: #9e77ed;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.astrology-link:hover {
    color: #b89cf5;
    text-decoration: underline;
}

.astrology-error {
    color: #ff6b6b;
    margin-top: 0.3rem;
}
.text-xs {
    font-size: 0.75rem; /* 12px */
    line-height: 1.333; /* 133% của font-size */
}

.text-sm {
    font-size: 0.875rem; /* 14px */
    line-height: 1.428; /* ~20px */
}

.text-base {
    font-size: 1rem; /* 16px */
    line-height: 1.5; /* 24px */
}
/* ========== END LOGIN PAGE STYLES ========== */

/* ========== REGISTER PAGE STYLES ========== */
/* 
   NOTE: Register page shares most styles with login page,
   so we only need to add specific styles that are different.
   The shared styles are already defined in the login section.
*/

/* Add any register-specific styles here if needed */
/* ========== END REGISTER PAGE STYLES ========== */

/* ========== STAR BỔ SUNG LOGIN PAGE STYLES ========== */

/* Thêm vào auth.css */
.btn .spinner-border {
    margin-right: 8px;
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ========== BASE RESPONSIVE STYLES ========== */
@media (max-width: 1199.98px) {
    /* Styles for large tablets and small laptops */
    .astrology-card {
        padding: 1.5rem;
    }

    .astrology-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 991.98px) {
    /* Styles for tablets */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .zodiac-animation {
        height: 70px;
        margin-bottom: 1.5rem;
    }

    .zodiac-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 767.98px) {
    /* Styles for mobile phones */
    .astrology-login,
    .astrology-box-register {
        padding: 1.5rem 0;
    }

    .astrology-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .astrology-title {
        font-size: 1.6rem;
    }

    .astrology-subtitle {
        font-size: 0.85rem;
    }

    .zodiac-animation {
        height: 60px;
        margin-bottom: 1.25rem;
    }

    .zodiac-icon {
        width: 45px;
        height: 45px;
    }

    .astrology-input,
    .google-btn,
    .astrology-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .divider-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    /* Styles for very small phones */
    .astrology-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .astrology-title {
        font-size: 1.5rem;
    }

    .zodiac-animation {
        height: 50px;
        margin-bottom: 1rem;
    }

    .zodiac-icon {
        width: 40px;
        height: 40px;
    }

    .astrology-input,
    .google-btn,
    .astrology-btn {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .astrology-label {
        font-size: 0.85rem;
    }

    .astrology-remember,
    .astrology-forgot,
    .astrology-register {
        font-size: 0.8rem;
    }
}

/* ========== SPECIFIC FIXES FOR MOBILE ========== */
@media (max-width: 767.98px) {
    /* Fix for constellation animation on mobile */
    .constellation {
        width: 80px;
        height: 80px;
    }

    /* Adjust form spacing */
    .form-group {
        margin-bottom: 0.75rem;
    }

    /* Adjust button spacing */
    .astrology-btn {
        margin-bottom: 0.75rem;
    }

    /* Make sure inputs don't overflow */
    .astrology-input {
        font-size: 0.9rem;
    }
}

/* ========== ORIENTATION SPECIFIC STYLES ========== */
@media screen and (max-width: 767.98px) and (orientation: landscape) {
    /* Styles for mobile in landscape mode */
    .astrology-login,
    .astrology-box-register {
        padding: 1rem 0;
    }

    .astrology-card {
        max-width: 80%;
        margin: 0 auto;
    }

    .row.justify-content-center {
        min-height: 100vh;
        align-items: center;
    }
}

/* ========== HIGH DPI DEVICES ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Make sure SVG icons look sharp */
    .astrology-input-icon svg,
    .astrology-toggle-password svg,
    .google-btn svg {
        shape-rendering: geometricPrecision;
    }
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    /* Ensure elements look good in dark mode */
    .astrology-card {
        background: rgba(26, 9, 51, 0.9);
    }

    .google-btn {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    .twinkling,
    .constellation,
    .zodiac-icon,
    .astrology-btn::after {
        animation: none !important;
    }

    .astrology-btn:hover {
        transform: none !important;
    }
}

/* ========== AUTH TABS ========== */
.auth-tabs {
    display: flex;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.auth-tab.active {
    background: rgba(106, 69, 209, 0.3);
    color: white;
    box-shadow: 0 2px 8px rgba(106, 69, 209, 0.2);
}

.auth-tab:not(.active):hover {
    color: #b89cf5;
    background: rgba(106, 69, 209, 0.1);
}
