@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');


.auth-galaxy-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    padding: 100px 4rem 2rem;
}

.auth-stars-layer,
.auth-nebula-effect {
    display: none;
}


.auth-galaxy-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    align-items: center;
}


.auth-visual-side {
    position: relative;
    padding: 3rem 2rem;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
}


.auth-hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.word-reveal {
    display: inline-block;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(15px);
    animation: wordReveal 0.5s ease forwards;
}

.word-reveal.delay-1 {
    animation-delay: 0.1s;
    margin-left: 0.35em;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.highlight-wrapper {
    display: block;
    position: relative;
    margin-top: 0.1em;
}

.word-open,
.word-web {
    display: inline-block;
    font-size: 4.2rem;
    font-weight: 900;
    color: white;
    opacity: 0;
    animation: textReveal 0.6s ease 0.25s forwards;
}

.word-web {
    margin-left: 0.2em;
    animation-delay: 0.35s;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    60% {
        text-shadow: 0 0 60px rgba(255, 255, 255, 0.6);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: none;
    }
}


.underline-glow {
    position: absolute;
    bottom: -6px;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, white 0%, rgba(255,255,255,0.3) 100%);
    border-radius: 2px;
    animation: drawUnderline 0.8s ease 0.6s forwards;
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

@keyframes drawUnderline {
    to {
        width: 100%;
    }
}


.auth-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 380px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}


.deco-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    height: 1px;
}

.line-1 {
    top: -40px;
    left: -50px;
    width: 200px;
    animation: lineSlide 1s ease 0.3s forwards;
    opacity: 0;
}

.line-2 {
    bottom: 20px;
    right: -30px;
    width: 150px;
    animation: lineSlide 1s ease 0.5s forwards;
    opacity: 0;
}

@keyframes lineSlide {
    to {
        opacity: 1;
    }
}


.deco-circle {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: circleExpand 1.2s ease 0.2s forwards;
    opacity: 0;
    transform: scale(0.8);
}

.circle-2 {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -60px;
    animation: circleExpand 1.2s ease 0.4s forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes circleExpand {
    to {
        opacity: 1;
        transform: scale(1);
    }
}


.deco-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: dotPulse 3s ease-in-out infinite;
}

.dot-1 {
    top: 20px;
    right: 80px;
    animation-delay: 0s;
}

.dot-2 {
    top: 50%;
    right: 20px;
    animation-delay: 1s;
}

.dot-3 {
    bottom: 60px;
    left: 30%;
    animation-delay: 2s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}


.hero-glow {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}


.auth-form-side {
    display: flex;
    justify-content: flex-start;
}

.auth-form-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 2.5rem 2.75rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: formReveal 0.6s ease 0.2s forwards;
}

@keyframes formReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}


.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.auth-form-header p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}


.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.5rem;
}

.auth-form-group label i {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.auth-form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
}

.auth-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-form-group input:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.auth-form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}


.auth-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    background: white;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.25rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.12);
}

.auth-submit-btn .btn-shine {
    display: none;
}


.auth-form-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-form-footer p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

.auth-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.25s ease;
}

.auth-link:hover::after {
    width: 100%;
}


.auth-error-message {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 71, 87, 0.06);
    border: 1px solid rgba(255, 71, 87, 0.12);
    border-radius: 10px;
    color: #ff6b7a;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}

.auth-success-message {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(39, 201, 63, 0.06);
    border: 1px solid rgba(39, 201, 63, 0.12);
    border-radius: 10px;
    color: #4ade80;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}


.google-signin-container {
    margin-bottom: 0.50rem;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.google-signin-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

.google-signin-btn .google-icon {
    width: 18px;
    height: 18px;
}


.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    gap: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-divider span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}


@media (max-width: 1100px) {
    .auth-galaxy-container {
        gap: 3rem;
    }
    
    .word-open, .word-web {
        font-size: 3.8rem;
    }
}

@media (max-width: 968px) {
    .auth-galaxy-section {
        padding: 100px 2rem 2rem;
    }
    
    .auth-galaxy-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 500px;
    }
    
    .auth-visual-side {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .word-reveal {
        font-size: 2.5rem;
    }
    
    .word-open, .word-web {
        font-size: 3.2rem;
    }
    
    .auth-hero-subtitle {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-decoration {
        display: none;
    }
    
    .auth-form-side {
        justify-content: center;
    }
    
    .auth-form-card {
        max-width: 100%;
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 640px) {
    .auth-galaxy-section {
        padding: 90px 1.25rem 1.5rem;
    }
    
    .word-reveal {
        font-size: 2rem;
    }
    
    .word-open, .word-web {
        font-size: 2.6rem;
    }
    
    .auth-form-card {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-form-header h2 {
        font-size: 1.35rem;
    }
    
    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .word-reveal {
        font-size: 1.7rem;
    }
    
    .word-open, .word-web {
        font-size: 2.2rem;
    }
    
    .auth-form-card {
        padding: 1.5rem 1.25rem;
    }
}


.register-slider-container {
    position: relative;
}

.register-step {
    display: none;
}

.register-step.active {
    display: block;
}

.register-step.slide-out-left {
    animation: slideOut 0.25s ease forwards;
}

.register-step.slide-in-right {
    animation: slideIn 0.25s ease forwards;
}

@keyframes slideOut {
    to { opacity: 0; transform: translateX(-15px); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}


.verification-code-container {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.75rem 0;
}

.code-input {
    width: 48px;
    height: 58px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: white;
    transition: all 0.25s ease;
}

.code-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.back-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.25s ease;
}

.back-button:hover {
    color: white;
}

.resend-code-section {
    text-align: center;
    margin-top: 1.25rem;
}

.resend-code-section p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.4rem;
}

.resend-btn {
    background: none;
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.resend-btn:hover {
    opacity: 0.8;
}


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.auth-form-group input:focus,
.auth-submit-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.25);
    outline-offset: 2px;
}
