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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    position: relative;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    margin: 20px
}

.login-card {
    background: rgba(20, 25, 45, 0.95);
    border: 2px solid rgba(100, 150, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(100, 150, 255, 0.1);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: #6495ff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(100, 149, 237, 0.5);
    letter-spacing: 2px;
}

.tagline {
    color: #8ab4f8;
    font-size: 1em;
    font-style: italic;
    opacity: 0.9;
}

.login-content {
    margin-bottom: 30px;
}

.login-content h2 {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

.login-description {
    color: #b8c5d6;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 70%;
    margin: 0 auto;
    padding: 14px 24px;
    background: #ffffff;
    color: #3c4043;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.google-login-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.google-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

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

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 150, 255, 0.2);
}

.login-footer p {
    color: #8ab4f8;
    font-size: 0.85em;
    opacity: 0.8;
}

/* Prevent mobile browsers from auto-zooming text */
html, body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Animated background stars */
.background-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #eee, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars-move 60s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes stars-move {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-200px);
    }
}

/* Responsive design */
@media (max-width: 500px) {
    /* Make the container take most of the viewport but leave some breathing room */
    .login-container {
        width: 90%;
        max-width: 420px; /* keep a sensible maximum on larger phones */
        padding: 12px;
        margin: 12px auto;
    }

    /* Reduce inner card padding so content fits without triggering zoom */
    .login-card {
        padding: 20px;
        border-radius: 12px;
    }

    /* Scale down the big heading so it doesn't overflow */
    .login-header h1 {
        font-size: 1.6em; /* smaller title on phones */
        line-height: 1.1;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .tagline {
        font-size: 0.9em;
    }

    .login-content h2 {
        font-size: 1.2em;
    }

    /* Make the Google button a bit wider relative to the smaller container */
    .google-login-btn {
        width: 85%;
        padding: 12px 18px;
        font-size: 0.95em;
    }

    /* Reduce footer spacing */
    .login-footer {
        padding-top: 12px;
    }
}
