/* ============================================
   MX SSO - Frontend Buttons Styles
   Version: 1.2 (Polished)
   ============================================ */

.mx-sso-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* Increased gap for better spacing */
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
}

.mx-sso-container * {
    box-sizing: border-box;
}

/* ----------------------------------------------
   STYLE: Text Only (Default)
   ---------------------------------------------- */
.mx-sso-container.style-text {
    flex-direction: column;
    align-items: flex-start;
}

.mx-sso-container.style-text .mx-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px; /* Prevent overly wide buttons */
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    color: #fff !important; /* Force white text */
    border: none;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.2;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mx-sso-container.style-text .mx-sso-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ----------------------------------------------
   STYLE: Text + Icon (Cards)
   ---------------------------------------------- */
.mx-sso-container.style-text_icon {
    display: grid;
    /* Responsive Grid: Minimum 110px width per card */
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
}

.mx-sso-container.style-text_icon .mx-sso-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 10px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.mx-sso-container.style-text_icon .mx-sso-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-color: #d63559; /* Use pink border on hover */
    color: #d63559;
}

.mx-sso-container.style-text_icon svg {
    margin-bottom: 12px;
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}

.mx-sso-container.style-text_icon .mx-sso-btn:hover svg {
    transform: scale(1.1);
}

/* ----------------------------------------------
   STYLE: Icon Only (Circles)
   ---------------------------------------------- */
.mx-sso-container.style-icon {
    flex-direction: row;
    justify-content: center; /* Center buttons horizontally */
    gap: 15px;
}

.mx-sso-container.style-icon .mx-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mx-sso-container.style-icon .mx-sso-btn:hover {
    transform: scale(1.1);
    border-color: #d63559; /* Pink border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mx-sso-container.style-icon svg {
    width: 24px;
    height: 24px;
}

/* ----------------------------------------------
   BRAND COLORS (For Text Buttons)
   ---------------------------------------------- */
.mx-sso-google     { background-color: #4285F4; }
.mx-sso-microsoft  { background-color: #2F2F2F; }
.mx-sso-facebook   { background-color: #1877F2; }
.mx-sso-linkedin   { background-color: #0077b5; }
.mx-sso-twitter    { background-color: #000000; }
.mx-sso-github     { background-color: #333333; }
.mx-sso-apple      { background-color: #000000; }