*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Hide brand navbar on login page */
.brand-navbar {
    display: none !important;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('https://images.wallpapersden.com/image/download/firewatch-new-hd-22-art_bWpubm2UmZqaraWkpJRnamtlrWZpaWU.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}

.wrap{
    width: 760px;
    max-width: calc(100% - 40px);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    box-shadow: 0 20px 50px rgba(20,30,40,0.45);
    padding: 34px 42px;
    color: #fff;
    border-radius: 14px;
    position: relative;
    z-index: 10; /* keep form above rain overlay */
}

.wrap h1 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 6px;
}

 .wrap .input-box{
    width: 100%;
    height: 50px;
    margin: 30px 0;
    position: relative;
}

.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    border: 2px solid rgba(255, 255, 255,.2);
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    padding: 20px 45px 20px 20px;
}

.input-box input::placeholder{
    color: #fff;
}

.input-box i{
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.wrap .container{
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 15px;
}

.container label input {
    accent-color: #fff;
    margin-right: 3px;
}

.container a {
    color: #fff;
    text-decoration: none; 
}

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

.wrap .btn {
    width: 100%;
    height: 52px;
    background-color: #fff ;
    border: none;
    outline: none;
    border-radius: 10px;
    box-shadow:  0 8px 30px rgba(0, 0, 0, .25);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

.wrap .btn:hover{
    background: transparent;
    transition: 2s ease;
    color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.2);
    border: 2px solid rgba(255, 255, 255,.2);
}

.wrap .register{
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0px 15px;
}

.register p a{
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.register p a:hover{
    text-decoration: underline;
}

.messages {
    margin-bottom: 20px;
    width: 100%;
}

/* Fallback Google button container tweaks */
.google-signin-container { text-align: center; margin: 18px 0; }
.g_id_signin { display: inline-flex; justify-content: center; }
.g_id_signin > div { border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); overflow: hidden; }

/* Bigger Google button fallback for when provider renders into page */
.g_id_signin > div[role] {
    padding: 0 !important;
}
.g_id_signin button, .g_id_signin div[role] {
    height: 48px !important;
    min-width: 420px;
    max-width: 100%;
    font-weight: 600 !important;
}

@media (max-width: 700px) {
    .wrap { 
        width: calc(100% - 32px); 
        max-width: calc(100% - 32px);
        padding: 28px 24px; 
        border-radius: 12px; 
    }
    .wrap h1 { font-size: 32px; }
    .g_id_signin button, .g_id_signin div[role] { 
        min-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .wrap { 
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        padding: 24px 20px;
    }
    .g_id_signin button, .g_id_signin div[role] { 
        min-width: 100% !important;
        width: 100% !important;
    }
}

.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background-color: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: rgba(209, 236, 241, 0.9);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Spotify player - outside the card, with better contrast */
.spotify-login-external {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(30, 30, 35, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

@media (max-width: 700px) {
    .spotify-login-external {
        width: calc(100% - 32px);
    }
}

@media (max-width: 480px) {
    .spotify-login-external {
        width: calc(100% - 24px);
    }
}

 /* Ensure the page centers the login card nicely above the background */
        .login-page-center {
            min-height: calc(100vh - 70px); /* Account for navbar */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px 16px;
            gap: 20px;
        }
        .wrap h1 { 
            font-size: 80px; 
            margin: 0 0 8px; 
            font-family: 'Space Grotesk', sans-serif; 
            font-weight: 700;
            letter-spacing: -2px;
            text-align: center;
            /* Premium gold color */
            color: #003153;
            /*  0f1f54 */
            text-shadow: 0 6px 18px rgba(212,175,55,0.15), 0 1px 0 rgba(0,0,0,0.15);
        }
        .wrap .subtitle { 
            font-size: 16px; 
            color: rgba(255,255,255,0.7); 
            margin-bottom: 8px;
            font-weight: 400;
        }
        .wrap .tagline {
            font-size: 19px;
            /* complementary soft gold */
            color: #25c19b;
            margin-top: -50px;
            margin-bottom: 60px;
            font-style: bold;
            font-weight: 700;
            letter-spacing: 0.3px;
            text-align: center;
            text-shadow: 0 4px 12px rgba(30,30,35,0.12);
            font-family: 'Gliker', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
            /* Ensure tagline is stacked above transformed logo so text can be selected/clicked */
            position: relative;
            z-index: 30;
            user-select: text; /* allow text selection */
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            pointer-events: auto; /* ensure it receives pointer events */
        }
        
        /* Responsive adjustments */
        
        @media (max-width: 900px) {
            .wrap h1 { font-size: 64px; letter-spacing: -1.5px; margin-bottom: 6px; }
            .wrap .subtitle { font-size: 15px; }
            .wrap .tagline { font-size: 17px; margin-top: -15px; margin-bottom: 24px; }
        }        @media (max-width: 700px) {
            .login-page-center { padding: 16px 12px; }
            .wrap h1 { font-size: 48px; letter-spacing: -1.2px; margin-bottom: 6px; }
            .wrap .subtitle { font-size: 14px; margin-bottom: 6px; }
            .wrap .tagline { font-size: 16px; margin-top: -15px; margin-bottom: 24px; }
        }
        
        @media (max-width: 480px) {
            .login-page-center { padding: 12px 8px; }
            .wrap h1 { font-size: 38px; letter-spacing: -1px; margin-bottom: 4px; }
            .wrap .subtitle { font-size: 13px; }
            .wrap .tagline { font-size: 15px; margin-top: -15px; margin-bottom: 24px; }
        }
        
        /* Styles for logo image */
        .wrap .brand-logo {
            height: 280px;
            width: auto;
            margin: -40px auto 0px;
            display: block;
            text-align: center;
            object-fit: contain;
            transform: scale(1.8);
            /* Don't intercept pointer events so underlying/overlaid text is selectable */
            pointer-events: none;
            /* keep logo visually below tagline */
            position: relative;
            z-index: 10;
            /* Smooth fade-in animation */
            animation: fadeInLogo 0.4s ease-in;
        }
        
        @keyframes fadeInLogo {
            from { opacity: 0; transform: scale(1.7); }
            to { opacity: 1; transform: scale(1.8); }
        }
        
        @media (max-width: 900px) {
            .wrap .brand-logo { height: 240px; margin: -35px auto 0px; transform: scale(2.0); }
        }
        
        @media (max-width: 700px) {
            .wrap .brand-logo { height: 200px; margin: -30px auto 0px; transform: scale(1.8); }
        }
        
        @media (max-width: 480px) {
            .wrap .brand-logo { height: 180px; margin: -25px auto 0px; transform: scale(1.6); }
        }