/* -----------------------------
   GENERAL WIDGET BUTTON
------------------------------ */
.eglv-login-widget {
    display: inline-block;
}

.eglv-login-open-button {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #1abc9c;
    background: #111;
    color: #1abc9c;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.eglv-login-open-button:hover {
    background: #1abc9c;
    color: #000;
    box-shadow: 0 0 10px rgba(0,255,200,0.4);
}

/* -----------------------------
   LOGGED-IN PROFILE (VERTICAL)
------------------------------ */
.eglv-login-profile-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    /* More breathing room */
    gap: 14px;
}

/* Avatar link wrapper */
.eglv-login-avatar-link {
    display: inline-block;
}

/* Larger modern round avatar (100px) */
.eglv-login-avatar,
.eglv-login-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 8px rgba(0,0,0,0.45);

    /* Soft circular fade */
    mask-image: radial-gradient(circle at center, black 75%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 75%, transparent 100%);
}

/* Username styling */
.eglv-login-name {
    display: block;
    font-weight: 600;

    /* Larger text to match avatar scale */
    font-size: 1.1rem;
    color: #0ff;
    text-decoration: none;
}

.eglv-login-name:hover {
    text-decoration: underline;
}

/* Logout button (larger, nicer) */
.eglv-logout-button {
    width: 140px;       /* 200% of old width */
    padding: 8px 0;     /* thicker button */
    border-radius: 10px;
    font-size: 0.9rem;  /* bigger text */
    border: 1px solid #555;
    background: #222;
    color: #ccc;
    cursor: pointer;
    transition: 0.2s;
}

.eglv-logout-button:hover {
    background: #d9534f;
    border-color: #d9534f;
    color: #fff;
}


/* -----------------------------
   MODAL WINDOW
------------------------------ */
.eglv-login-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}
.eglv-login-modal.is-open {
    display: block;
}
.eglv-login-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.eglv-login-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #111;
    color: #eee;
    border-radius: 10px;
    padding: 20px 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 1px solid #333;
}

.eglv-login-modal-dialog h2 {
    margin-top: 0;
    color: #0ff;
}

.eglv-login-modal-dialog p {
    color: #ccc;
}

.eglv-login-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
}
.eglv-login-modal-close:hover {
    color: #fff;
}

/* -----------------------------
   PROVIDER GRID & TILES
------------------------------ */
.eglv-login-provider-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.eglv-login-provider-tile {
    flex: 1 1 45%;
    min-width: 140px;
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid #333;
    text-decoration: none;
    color: #eee;
    background: #181818;
    transition: all 0.2s ease;
}

.eglv-login-provider-tile:hover {
    background: #222;
    border-color: #0ff;
    box-shadow: 0 0 12px rgba(0,255,255,0.3);
}

.eglv-login-provider-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #1abc9c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

.eglv-login-provider-label {
    font-size: 0.9rem;
}

.eglv-login-provider-wordpress .eglv-login-provider-icon {
    background: #0073aa;
    color: #fff;
}
