/* Glassmorphism Login Page Styles - Monochrome Edition */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --text-color: #ffffff;
    --accent-white: #ffffff;
    --accent-gray: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    overflow: hidden;
    position: relative;
}

/* Abstract Monochrome Background */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 15s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #333333;
    top: -150px;
    left: -150px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #1a1a1a;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #444444;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation: pulse 10s infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 30px) rotate(5deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

.login-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inner glow/shine */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 15px;
    color: #888;
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Google Login Button - Monochrome Style */
.google-login-button {
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: black;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.google-login-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.google-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    color: black;
}

.google-login-button:hover::after {
    opacity: 1;
}

.google-icon {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    padding: 4px;
    transition: transform 0.3s ease;
}

.google-login-button:hover .google-icon {
    transform: rotate(360deg);
    filter: invert(1);
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.google-login-button:hover .spinner {
    border-color: rgba(0, 0, 0, 0.3);
    border-top-color: #000;
}

.google-login-button.loading .spinner {
    display: block;
}

.google-login-button.loading .button-text,
.google-login-button.loading .google-icon {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    margin-top: 24px;
    color: #ff4d4d;
    font-size: 14px;
    background: rgba(255, 0, 0, 0.1);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    display: none;
    backdrop-filter: blur(5px);
}

.error-message.show {
    display: block;
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Decorative Elements */
.decorative-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto 30px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 40px 24px;
    }

    h1 {
        font-size: 28px;
    }
}