/* --- Modern Login Page Styles --- */

:root {
    --login-card-bg: rgba(255, 255, 255, 0.85);
    --login-primary: #2D5A27;
    --login-accent: #8A9A5B;
    --login-text: #1a1a1a;
    --login-radius: 32px;
    --login-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.gp-modern-login-wrapper {
    min-height: auto;
    /* Reduced from 60vh */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    /* Reduced vertical padding */
    position: relative;
    z-index: 10;
}

/* Theme Overrides to pull the card up and hide floor clutter */
.woocommerce-account:not(.logged-in) .entry-header,
.woocommerce-account:not(.logged-in) footer {
    display: none !important;
    /* Hide footer and title for a clean, single-screen experience */
}

.woocommerce-account:not(.logged-in) #primary.content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.woocommerce-account:not(.logged-in) .ast-separate-container .ast-article-single {
    padding-top: 5vh !important;
    /* Center slightly from top */
    padding-bottom: 0 !important;
}

.woocommerce-account:not(.logged-in) .site-content {
    padding-top: 0 !important;
    min-height: calc(100vh - 131px);
    /* Viewport minus header */
}

/* Body scrolling is now handled globally at the html level */

/* Background Decoration */
.gp-login-bg-deco {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #fdfdfb;
}

.gp-login-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.gp-login-circle-1 {
    width: 400px;
    height: 400px;
    background: var(--login-primary);
    top: -100px;
    right: -100px;
}

.gp-login-circle-2 {
    width: 300px;
    height: 300px;
    background: var(--login-accent);
    bottom: -50px;
    left: -50px;
}

/* The Card */
.gp-login-card {
    background: var(--login-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--login-radius);
    width: 100%;
    max-width: 400px;
    padding: 20px 28px;
    box-shadow: var(--login-shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardAppear 0.8s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gp-login-header {
    text-align: center;
    margin-bottom: 12px;
}

.gp-login-logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--login-primary);
    margin-bottom: 0px;
    display: block;
}

.gp-login-subtitle {
    font-size: 12px;
    color: #666;
    font-family: 'Inter', sans-serif;
}

/* Tabs */
.gp-login-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    padding: 3px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.gp-login-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gp-login-tab.active {
    background: white;
    color: var(--login-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Form Elements */
.gp-login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gp-form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gp-form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #444;
    padding-left: 4px;
}

.gp-form-group input {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-shadow: none !important;
}

.gp-form-group input:focus {
    border-color: var(--login-primary) !important;
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.05) !important;
    outline: none !important;
}

/* Password Group */
.gp-password-group {
    position: relative;
}

.gp-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    z-index: 5;
}

/* Checkbox & Links */
.gp-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.gp-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
}

.gp-remember-me input {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    border-radius: 4px !important;
}

.gp-lost-pass {
    color: var(--login-primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: -5px;
    /* Pull it up a bit */
}

.gp-lost-pass:hover {
    text-decoration: underline;
}

/* Button */
.gp-login-btn {
    background: var(--login-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 5px !important;
    box-shadow: 0 6px 12px rgba(45, 90, 39, 0.15) !important;
}

.gp-login-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(45, 90, 39, 0.3) !important;
    opacity: 0.95 !important;
}

.gp-login-btn:active {
    transform: translateY(0) !important;
}

.gp-login-btn.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Feedback */
.gp-form-notice {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gp-form-notice.error {
    background: #fff0f0;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.gp-form-notice.success {
    background: #f0fff4;
    color: #2d5a27;
    border: 1px solid #c6f6d5;
}

/* Privacy Text */
.gp-privacy-note {
    font-size: 9px;
    color: #888;
    line-height: 1.3;
    text-align: center;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .gp-login-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .gp-login-logo {
        font-size: 28px;
    }
}