* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    overflow-x: hidden;
    min-height: 100vh;
}

input,
button {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}

#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#auth-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
    max-width: 400px;
}

.auth-section.active {
    display: block;
    opacity: 1;
}

.auth-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 2.5em;
    text-shadow: 0 0 10px #00f3ff, 0 0 20px #00f3ff, 0 0 30px #00f3ff;
    text-transform: uppercase;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-control {
    position: relative;
    margin: 0;
    width: 100%;
}

.form-control input {
    background-color: transparent;
    border: 0;
    border-bottom: 2px #fff solid;
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 18px;
    color: #fff;
}

.form-control input:focus,
.form-control input:valid {
    outline: 0;
    border-bottom-color: #00f3ff;
}

.form-control label {
    position: absolute;
    top: 15px;
    left: 0;
    pointer-events: none;
}

.form-control label span {
    display: inline-block;
    font-size: 18px;
    min-width: 5px;
    color: #fff;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-control input:focus+label span,
.form-control input:valid+label span {
    color: #00f3ff;
    transform: translateY(-30px);
}

.animated-button {
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
    background-size: 400%;
    color: #fff;
    position: relative;
    overflow: hidden;
    animation: gradient 8s ease infinite;
    font-size: 1.4em;
    padding: 0.6em 0.8em;
    border-radius: 0.5em;
    border: none;
    cursor: pointer;
    box-shadow: 2px 2px 3px #000000b4;
    transition: all 0.4s ease;
    width: 100%;
}

.animated-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.link-glow {
    color: #00f3ff;
    text-decoration: none;
    transition: text-shadow 0.3s;
}

.link-glow:hover {
    text-shadow: 0 0 10px #00f3ff;
}

/* Auth Divider Styles */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-divider span {
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Google Sign-In Button Styles - Animated */
.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 25%, #fbbc05 50%, #ea4335 75%, #4285f4 100%);
    background-size: 300% 300%;
    color: #fff;
    border: none;
    border-radius: 0.6em;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
    position: relative;
    overflow: hidden;
    animation: googleGradient 4s ease infinite;
}

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

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

.google-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.5),
        0 0 20px rgba(52, 168, 83, 0.3),
        0 0 30px rgba(251, 188, 5, 0.2);
}

.google-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.4);
}

@keyframes googleGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.google-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

/* Loading state for buttons */
.animated-button:disabled,
.google-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    #auth-container {
        padding: 15px;
    }

    .auth-box {
        padding: 30px 25px;
        border-radius: 12px;
    }

    .auth-box h1 {
        font-size: 2em;
    }

    .form-control input {
        font-size: 16px;
        padding: 12px 0;
    }

    .form-control label span {
        font-size: 16px;
    }

    .animated-button {
        font-size: 1.2em;
        padding: 0.8em;
    }

    .google-button {
        font-size: 1em;
        padding: 12px 18px;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #auth-container {
        padding: 10px;
        align-items: flex-start;
        padding-top: 50px;
    }

    .auth-box {
        padding: 25px 20px;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    }

    .auth-box h1 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

    .auth-form {
        gap: 15px;
    }

    .form-control input {
        font-size: 14px;
        padding: 10px 0;
    }

    .form-control label span {
        font-size: 14px;
    }

    .form-control input:focus+label span,
    .form-control input:valid+label span {
        transform: translateY(-25px);
        font-size: 12px;
    }

    .animated-button {
        font-size: 1em;
        padding: 0.7em;
    }

    .google-button {
        font-size: 0.9em;
        padding: 10px 15px;
        gap: 8px;
    }

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

    .auth-divider span {
        font-size: 0.8em;
        padding: 0 10px;
    }

    .auth-form p {
        font-size: 0.9em;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .auth-box {
        padding: 20px 15px;
    }

    .auth-box h1 {
        font-size: 1.4em;
    }

    .animated-button {
        font-size: 0.9em;
    }

    .google-button {
        font-size: 0.85em;
        flex-direction: column;
        gap: 5px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #auth-container {
        padding: 10px;
        min-height: auto;
    }

    .auth-box {
        padding: 20px;
    }

    .auth-box h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .auth-form {
        gap: 10px;
    }
}