/* ============================================
   Google Registration Styles
   ============================================ */

/* Social Buttons Container - Side by Side */
.social-buttons-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

/* Google Button in Register Page */
.social-buttons-row .google-register-btn,
    .facebook-register-btn,
.google-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
}

.google-register-btn:hover {
    border-color: #4285f4;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15);
}

.google-register-btn__icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.social-login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #666;
    font-size: 14px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.social-login-divider::before {
    margin-right: 16px;
}

.social-login-divider::after {
    margin-left: 16px;
}

/* ============================================
   Google Phone Modal
   ============================================ */

.google-phone-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.google-phone-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.google-phone-modal__container {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.google-phone-modal__card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 32px;
    position: relative;
}

/* Modal Header */
.google-phone-modal__header {
    text-align: center;
    margin-bottom: 24px;
    padding-right: 32px;
}

.google-phone-modal__title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.google-phone-modal__subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.google-phone-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #666;
    transition: all 0.2s ease;
}

.google-phone-modal__close:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

/* Google User Preview */
.google-phone-modal__user-preview {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 24px;
}

.google-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 16px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-user-info {
    flex: 1;
}

.google-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.google-user-email {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Form Fields */
.google-phone-modal__field {
    margin-bottom: 20px;
}

.google-phone-modal__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.google-phone-modal__input-wrapper,
.google-phone-modal__input-group {
    position: relative;
}

.google-phone-modal__select,
.google-phone-modal__input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    transition: all 0.2s ease;
    font-family: inherit;
}

.google-phone-modal__select:focus,
.google-phone-modal__input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.google-phone-modal__select {
    cursor: pointer;
    appearance: none;
    background-image: url(data:image/svg+xml,%3Csvg width=12 height=8 viewBox=0 0 12 8 fill=none xmlns=http://www.w3.org/2000/svg%3E%3Cpath d=M1 1L6 6L11 1 stroke=%23666 stroke-width=2 stroke-linecap=round/%3E%3C/svg%3E);
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.google-phone-modal__input-group {
    display: flex;
    align-items: stretch;
}

.google-phone-modal__prefix {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    min-width: 70px;
    justify-content: center;
}

.google-phone-modal__input-group .google-phone-modal__input {
    border-radius: 0 8px 8px 0;
    flex: 1;
}

.google-phone-modal__help {
    font-size: 13px;
    color: #666;
    margin: 8px 0 0 0;
}

.google-phone-modal__help strong {
    color: #4285f4;
}

.google-phone-modal__error {
    display: block;
    font-size: 13px;
    color: #d93025;
    margin-top: 6px;
}

/* Security Notice */
.google-phone-modal__notice {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #e8f0fe;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #1967d2;
}

.google-phone-modal__notice svg {
    flex-shrink: 0;
    margin-right: 12px;
}

/* Modal Actions */
.google-phone-modal__actions {
    display: flex;
    gap: 12px;
}

.google-phone-modal__btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-phone-modal__btn--cancel {
    background: #f0f0f0;
    color: #666;
}

.google-phone-modal__btn--cancel:hover {
    background: #e0e0e0;
    color: #1a1a1a;
}

.google-phone-modal__btn--submit {
    background: #4285f4;
    color: #fff;
}

.google-phone-modal__btn--submit:hover {
    background: #3367d6;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.google-phone-modal__btn--submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Spinner Animation */
.spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.google-phone-modal__input.error,
.google-phone-modal__select.error {
    border-color: #d93025;
}

.google-phone-modal__input.error:focus,
.google-phone-modal__select.error:focus {
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

/* Success State */
.google-phone-modal__input.success {
    border-color: #1e8e3e;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .google-phone-modal__card {
        padding: 24px;
    }
    
    .google-phone-modal__title {
        font-size: 20px;
    }
    
    .google-phone-modal__actions {
        flex-direction: column;
    }
    
    .google-phone-modal__btn {
        width: 100%;
    }
    
    .google-user-avatar {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .google-phone-modal__container {
        width: 95%;
    }
    
    .google-phone-modal__card {
        padding: 20px;
        border-radius: 12px;
    }
}

/* ============================================
   Loading State
   ============================================ */

.google-phone-modal--loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   LINE Registration Styles
   ============================================ */

.social-buttons-row .line-register-btn,
.line-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
    padding: 12px 16px;
    background: #00B900;
    border: 2px solid #00B900;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
}

.line-register-btn:hover {
    background: #00a000;
    border-color: #00a000;
    box-shadow: 0 2px 8px rgba(0, 185, 0, 0.3);
}

.line-register-btn__icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: #fff;
    flex-shrink: 0;
}

/* Facebook Register Button */
.social-buttons-row .facebook-register-btn,
.facebook-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
    padding: 12px 16px;
    background: #1877F2;
    border: 2px solid #1877F2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
}

.facebook-register-btn:hover {
    background: #166fe5;
    border-color: #166fe5;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.facebook-register-btn__icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: #fff;
    flex-shrink: 0;
}

/* Responsive - Stack on very small screens */
@media (max-width: 400px) {
    .social-buttons-row {
        flex-direction: column;
        gap: 8px;
    }

    .google-register-btn,
    .facebook-register-btn,
    .line-register-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    .google-register-btn__icon,
    .facebook-register-btn__icon,
    .line-register-btn__icon {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }
}
