/**
 * Google OAuth Login Styles
 *
 * @package AgenWebsiteStorekit
 */

/* Container */
.aws-oauth-login {
    margin: 24px 0 10px;
    text-align: center;
    clear: both;
}

/* Register form placement — below password, clearly separated */
.aws-oauth-login--register {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Separator */
.aws-oauth-login__separator {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: #666;
    font-size: 13px;
}

.aws-oauth-login__separator::before,
.aws-oauth-login__separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.aws-oauth-login__separator span {
    padding: 0 12px;
    text-transform: lowercase;
}

/* Button base */
.aws-oauth-login__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.aws-oauth-login__button:focus {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}

.aws-oauth-login__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Icon */
.aws-oauth-login__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.aws-oauth-login__icon svg {
    width: 100%;
    height: 100%;
}

/* Dark style (Google branding blue) */
.aws-oauth-login--dark .aws-oauth-login__button {
    background-color: #4285F4;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.aws-oauth-login--dark .aws-oauth-login__button:hover {
    background-color: #3367D6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.aws-oauth-login--dark .aws-oauth-login__icon {
    background: #fff;
    padding: 2px;
    border-radius: 2px;
}

/* Light style */
.aws-oauth-login--light .aws-oauth-login__button {
    background-color: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.aws-oauth-login--light .aws-oauth-login__button:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Outline style */
.aws-oauth-login--outline .aws-oauth-login__button {
    background-color: transparent;
    color: #3c4043;
    border: 2px solid #dadce0;
}

.aws-oauth-login--outline .aws-oauth-login__button:hover {
    border-color: #4285F4;
    color: #4285F4;
}

/* Unlink button on Account Details */
.aws-oauth-unlink {
    margin-top: 8px;
}

/* wp-login.php integration */
.login .aws-oauth-login {
    margin-top: 16px;
}

.login .aws-oauth-login__button {
    max-width: 100%;
}
