/**
 * SS Social Login Styles
 */

/* Button Styles */
.ss-google-login-button,
.ss-yandex-login-button,
.ss-passkey-login-button {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #fff;
    position: relative;
}

.ss-google-login-button {
    background-color: #4285F4;
    border-radius: 16px;
}

.ss-yandex-login-button {
    background-color: #000;
    border-radius: 16px;
}

.ss-google-login-button:hover {
    background-color: #5e96f3;
    color: #fff;
}

.ss-yandex-login-button:hover {
    background-color: #282828;
    color: #fff;
}

/* Icon Styles */
.ss-google-icon,
.ss-yandex-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
}

.ss-google-icon {
    background-image: url('../img/google-icon.svg');
}

.ss-yandex-icon {
    background-image: url('../img/yandex-icon.svg');
}

/* Text Styles */
.ss-google-text,
.ss-yandex-text {
    flex: 1;
    text-align: center;
}

/* Avatar Styles */
.ss-social-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 5px;
}

/* Account Connection Styles */
.ss-social-login-account-connections {
    margin: 20px 0;
    padding: 20px;
    background-color: #efefef;
    border-radius: 15px;
}

.ss-social-login-connection-status {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ss-social-login-connection-status:last-child {
    border-bottom: none;
}

.ss-google-provider,
.ss-yandex-provider {
    flex: 1;
    margin-left: 10px;
}

.ss-social-status {
    margin: 0 15px;
}

.ss-social-status.connected {
    color: #4CAF50;
}

.ss-social-status.disconnected {
    color: #F44336;
}

.ss-social-connect-button,
.ss-social-disconnect-button {
    padding: 5px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
}

.ss-social-connect-button {
    background-color: #2191ff;
    color: white;
}

.ss-social-disconnect-button {
    background-color: #E60020;
    color: white;
}

.ss-social-connect-button:hover {
    background-color: #2191ff;
    color: white;
}

.ss-social-disconnect-button:hover {
    background-color: #E60020;
    color: white;
}

/* Passkey Button */
.ss-passkey-login-button {
    background-color: #1c1c1c;
    border-radius: 16px;
}

.ss-passkey-login-button:hover {
    background-color: #333;
    color: #fff;
}

.ss-passkey-login-button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.ss-passkey-login-button[disabled] .ss-passkey-icon {
    display: none;
}

.ss-passkey-login-button[disabled] span:last-child {
    display: none;
}

/* Passkey Icon — rotated key in circle */
.ss-passkey-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='none' stroke='white' stroke-width='1.5'/%3E%3Cg transform='translate(12,12) rotate(-45) translate(-12,-12)'%3E%3Ccircle cx='8.5' cy='12' r='3' fill='none' stroke='white' stroke-width='1.5'/%3E%3Cline x1='11.5' y1='12' x2='18' y2='12' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='16' y1='12' x2='16' y2='9.5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='18' y1='12' x2='18' y2='10' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}

/* Passkey icon on account page — dark version */
.ss-social-login-account-connections .ss-passkey-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='none' stroke='%231c1c1c' stroke-width='1.5'/%3E%3Cg transform='translate(12,12) rotate(-45) translate(-12,-12)'%3E%3Ccircle cx='8.5' cy='12' r='3' fill='none' stroke='%231c1c1c' stroke-width='1.5'/%3E%3Cline x1='11.5' y1='12' x2='18' y2='12' stroke='%231c1c1c' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='16' y1='12' x2='16' y2='9.5' stroke='%231c1c1c' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='18' y1='12' x2='18' y2='10' stroke='%231c1c1c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}

/* Passkey Text */
.ss-passkey-text {
    flex: 1;
    text-align: center;
}

/* Passkey Provider Label */
.ss-passkey-provider {
    flex: 1;
    margin-left: 10px;
}

/* Passkey Credentials List */
.ss-passkey-credentials-list {
    margin-top: 10px;
    padding-left: 35px;
}

.ss-passkey-credential-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    gap: 10px;
}

.ss-passkey-credential-label {
    flex: 1;
}

.ss-passkey-credential-date {
    color: #888;
}

.ss-passkey-delete-button {
    color: #E60020;
    text-decoration: none;
    font-size: 12px;
}

.ss-passkey-delete-button:hover {
    text-decoration: underline;
}

/* Passkey Messages */
.ss-passkey-message {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.ss-passkey-message-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.ss-passkey-message-error {
    background-color: #fce4ec;
    color: #c62828;
}

/* Passkey Register Button in Account */
.ss-passkey-register-button {
    cursor: pointer;
} 