/**
 * Social Buttons CSS - Quotosaurus
 * Created: April 2025
 * 
 * This file contains styling for social authentication buttons and connection elements
 * following the April 2025 design specifications.
 */

/* Social Login Buttons */
.social-btn {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    margin-bottom: 12px;
}

.social-btn:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.social-btn:active {
    transform: translateY(0);
}

.social-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

/* This ensures all logos are properly centered */
.social-icon-container img {
    display: block;
    margin: 0 auto;
}

.social-btn-text {
    flex-grow: 1;
    text-align: center;
    font-size: 16px;
    padding-right: 56px; /* Balance the icon container */
}

.twitter-container {
    background-color: #000;
}

.google-container {
    background-color: #fff;
    border-right: 1px solid #dee2e6;
}

.apple-container {
    background-color: #000;
}

/* Light mode for Apple button */
.apple-container.light {
    background-color: #fff;
    border-right: 1px solid #dee2e6;
}

/* Loading animation for social buttons */
@keyframes socialBtnLoading {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.social-btn.loading {
    animation: socialBtnLoading 1.5s infinite;
    pointer-events: none;
}

/* Social Account Connections Page */
.social-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

/* Provider logo container - for logos that don't need backgrounds */
.provider-logo-container {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
}

.twitter-bg {
    background-color: #000;
}

.google-bg {
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.apple-bg {
    background-color: #000;
}

/* Provider connect buttons */
.social-connect-btn {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: #212529;
    transition: all 0.2s ease;
}

.social-connect-btn:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.social-connect-btn:active {
    transform: translateY(0);
}

.social-connect-btn .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.social-connect-btn span {
    flex-grow: 1;
    text-align: center;
    padding-right: 48px; /* Balance the icon container */
}

.twitter-btn .icon-container {
    background-color: #000;
}

.google-btn .icon-container {
    background-color: #fff;
    border-right: 1px solid #dee2e6;
}

.apple-btn .icon-container {
    background-color: #000;
}

/* Divider with text for login options */
.divider-with-text {
    display: flex;
    align-items: center;
    color: #6c757d;
    margin: 24px 0 16px;
}

.divider-with-text::before,
.divider-with-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.divider-with-text > span {
    margin: 0 10px;
    font-size: 14px;
}

/* Sign In button with loading state */
.signin-btn {
    height: 48px;
    transition: all 0.2s ease;
    position: relative;
}

.signin-btn:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.signin-btn.loading .signin-text {
    visibility: hidden;
}

.signin-btn.loading .signin-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block !important;
}

/* Secondary authentication options */
.email-code-btn, .passkey-btn {
    height: 48px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-code-btn:hover, .passkey-btn:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.email-code-btn:active, .passkey-btn:active {
    transform: translateY(0);
}