/* Modern Elegant Login Theme for Google SSO */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@700&display=swap');

/* 1. Background & General Layout */
body.login {
    background-color: var(--sso-bg-color, #0f172a) !important;
    /* We keep the gradients but blend them with the background color */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%) !important;
    background-size: cover !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
    min-height: 100vh !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
    overflow: hidden !important;
    position: relative !important;
}

html {
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Hide WordPress Elements */
.login h1 a,
#nav,
#backtoblog,
.login form {
    display: none !important;
}

/* 3. Container Styling */
#login {
    width: 100% !important;
    max-width: 420px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 4. Glassmorphism Card */
.sso-login-wrapper {
    width: 100% !important;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box;
}

/* The "Star" / Rotating Border Effect */
.sso-login-wrapper::before {
    content: "";
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-image: conic-gradient(transparent, transparent, transparent, var(--sso-accent-color, #00ffff));
    animation: rotate var(--sso-anim-speed, 4s) linear infinite;
}

/* Inner background to hide the center of the conic gradient */
.sso-login-wrapper::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: var(--sso-bg-color, #0f172a);
    /* Match body bg */
    border-radius: 22px;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

.sso-login-wrapper:hover::before {
    animation-duration: calc(var(--sso-anim-speed, 4s) / 2);
}

/* 5. Logo Styling */
.sso-logo-container {
    margin-bottom: 32px;
}

.sso-site-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sso-login-wrapper:hover .sso-site-logo {
    transform: scale(1.05);
}

/* 6. Title Styling */
.sso-login-title {
    color: var(--sso-text-color, #ffffff);
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.sso-login-wrapper p {
    color: #94a3b8;
    /* Keep subtle for description */
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* 7. Reset Message Container */
.login .message {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* 8. Button Container */
.google-sso-button-container {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Override Button for Modern Look */
.google-sso-button {
    background: #ffffff !important;
    color: #0f172a !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 0 24px !important;
    height: 48px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.google-sso-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15) !important;
    background: #f8fafc !important;
}

.google-sso-button:active {
    transform: translateY(0);
}

.google-sso-button .dashicons {
    color: #0f172a;
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-right: 12px !important;
}

/* Footer Link */
.sso-footer-link {
    margin-top: 24px;
    display: block;
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.sso-footer-link:hover {
    color: var(--sso-text-color, #94a3b8);
    opacity: 0.8;
}