body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #43cea2, #185a9d);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow-x: hidden;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 35px 40px;
    text-align: center;
    width: 320px;
    max-width: 90vw;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-container:hover {
    transform: translateY(-5px);
}

.login-container h1 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Base Login Button Styles */
.login-btn {
    color: #fff;
    font-weight: 500;
    padding: 12px 15px;
    margin: 12px 0;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Touch-friendly button sizing */
.login-btn {
    min-height: 48px;
    font-size: 16px;
}

/* Button-specific colors */
.google-login {
    background: #db4437;
}

.google-login:hover:not(:disabled) {
    background: #c13224;
}

.auth0-login {
    background: #185a9d;
}

.auth0-login:hover:not(:disabled) {
    background: #14497a;
}

.auth0-signup {
    background: #43cea2;
}

.auth0-signup:hover:not(:disabled) {
    background: #37b58e;
}

/* Icons */
.social-icon {
    margin-right: 12px;
    font-size: 18px;
}

/* Login divider */
.login-divider {
    margin: 20px 0;
    position: relative;
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 40px;
}

.login-divider span {
    background: transparent;
    padding: 0 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-divider hr {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    margin: 0;
    z-index: 1;
}

.wave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: url('https://cdn.pixabay.com/photo/2017/08/30/07/51/wave-2695612_1280.png') repeat-x;
    background-size: 1600px 180px;
    animation: wave 15s infinite linear;
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

/* Add a second wave with different speed and opacity for depth */
.wave:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 180px;
    bottom: 15px;
    left: 0;
    background: url('https://cdn.pixabay.com/photo/2017/08/30/07/51/wave-2695612_1280.png') repeat-x;
    background-size: 1600px 180px;
    animation: wave 8s infinite linear;
    opacity: 0.5;
}

@keyframes wave {
    from {
        background-position: 0;
    }
    to {
        background-position: -1600px;
    }
}

.divider {
    margin: 20px 0;
    position: relative;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    height: 40px;
}

.divider::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.divider::after {
    content: 'or';
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.loading-message {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.error-message {
    background-color: rgba(255, 102, 102, 0.2);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #ff6666;
    text-align: left;
    font-size: 14px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        gap: 20px;
    }
    
    .logo {
        position: static;
        margin: 0;
        display: block;
        width: fit-content;
        padding: 12px 24px;
        font-size: 18px;
        order: 1;
        flex-shrink: 0;
    }
    
    .login-container {
        width: calc(100% - 20px);
        max-width: 350px;
        padding: 20px 20px;
        margin: 0;
        order: 2;
        flex-shrink: 1;
        min-height: 0;
        overflow: hidden;
    }
    
    .login-container h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .login-btn {
        padding: 14px 18px;
        font-size: 15px;
        margin: 10px 0;
    }
    
    .social-icon {
        margin-right: 10px;
        font-size: 16px;
    }
    
    .wave {
        height: 120px;
        background-size: 1000px 120px;
    }
    
    .wave:before {
        height: 120px;
        background-size: 1000px 120px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
        gap: 15px;
        overflow: hidden;
    }
    
    .logo {
        padding: 12px 24px;
        font-size: 18px;
    }
    
    .login-container {
        width: calc(100% - 16px);
        padding: 18px 16px;
    }
    
    .login-container h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .login-btn {
        padding: 12px 16px;
        font-size: 14px;
        margin: 8px 0;
    }
    
    .wave {
        height: 100px;
        background-size: 800px 100px;
    }
    
    .wave:before {
        height: 100px;
        background-size: 800px 100px;
        bottom: 8px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 5px;
        gap: 10px;
        overflow: hidden;
    }
    
    .logo {
        padding: 12px 24px;
        font-size: 18px;
    }
    
    .login-container {
        width: calc(100% - 10px);
        padding: 15px 12px;
    }
    
    .login-container h1 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .login-btn {
        padding: 10px 14px;
        font-size: 13px;
        margin: 6px 0;
    }
    
    .logo {
        padding: 10px 18px;
        font-size: 16px;
        margin-bottom: 25px;
    }
}