/* 
 * AnimeAI Print - WooCommerce Login Styling (Safe Version)
 * 只做视觉美化，不改变WooCommerce核心功能
 */

/* 主容器样式 */
.animeai-login-container {
    max-width: 500px;
    margin: 0px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
.woocommerce-account h2,
.woocommerce-account .address .title h3 {
	margin: 0 0 0 0 !important; 
}
/* 登录和注册表单包装器 */
.animeai-login-wrapper {
    position: relative;
}

.animeai-login-form-container {
    display: block;
}

.animeai-register-form-container {
    display: none;
}

/* AnimeAI头部样式 */
.animeai-login-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.animeai-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.animeai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animeai-login-title {
    color: #333;
    font-family: Helvetica;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

/* 美化WooCommerce输入框 */
.animeai-login-container .woocommerce-Input {
    border-radius: 20px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    height: 48px !important;
    line-height: 24px !important;
}

.animeai-login-container .woocommerce-Input:focus {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Placeholder样式 */
.animeai-login-container .woocommerce-Input::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.animeai-login-container .woocommerce-Input::-webkit-input-placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

.animeai-login-container .woocommerce-Input::-moz-placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.animeai-login-container .woocommerce-Input:-ms-input-placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

/* 表单行样式 - 使用Placeholder，不显示Label */
.animeai-login-container .woocommerce-form-row {
    margin-bottom: 20px !important;
}

/* 隐藏标签（已移到screen-reader-text） */
.animeai-login-container .woocommerce-form-row label:not(.woocommerce-form__label-for-checkbox) {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* 输入框样式 - 全宽显示 */
.animeai-login-container .woocommerce-form-row .woocommerce-Input {
    width: 100%;
    margin: 0;
}


/* 隐藏必填星号，使用更优雅的样式 */
.animeai-login-container .required {
    color: #e53e3e;
}

/* 美化登录按钮 */
.animeai-login-btn {
    background: linear-gradient(135deg, #e879a6 0%, #ff9f7a 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 30px !important;
    width: 160px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-shadow: none !important;
    box-shadow: none !important;
    display: block !important;
    margin: 0 auto !important;
}

.animeai-login-btn:hover {
    background: linear-gradient(135deg, #dd6b96 0%, #ff8f6a 100%) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 美化注册按钮 */
.animeai-register-btn {
    background: linear-gradient(135deg, #42a5f5 0%, #66bb6a 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 30px !important;
    width: 160px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-shadow: none !important;
    box-shadow: none !important;
    display: block !important;
    margin: 0 auto !important;
}

.animeai-register-btn:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #4caf50 100%) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 登录链接区域 */
.animeai-login-links {
    text-align: center;
    margin-top: 20px;
}

.animeai-login-links p {
    margin: 10px 0;
}

.animeai-create-account a,
.animeai-back-to-login a {
    color: #e879a6;
    font-weight: 500;
    font-size: 14px;
}

.animeai-create-account a:hover,
.animeai-back-to-login a:hover {
    color: #dd6b96;
}

/* Lost password 居右布局（Remember me已隐藏） */
.animeai-login-container .animeai-remember-lost-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 15px 0 20px 0 !important;
    padding: 0 !important;
}

/* 忘记密码链接样式 */
.animeai-login-container .animeai-remember-lost-row .woocommerce-LostPassword.lost_password {
    margin: 0 !important;
    padding: 0 !important;
}

.animeai-login-container .animeai-remember-lost-row .woocommerce-LostPassword.lost_password a {
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    transition: all 0.2s ease !important;
}

.animeai-login-container .animeai-remember-lost-row .woocommerce-LostPassword.lost_password a:hover {
    color: #374151 !important;
    text-decoration: none !important;
}

/* 美化"记住我"和按钮区域 */
.animeai-login-container .form-row {
    text-align: center !important;
    margin-bottom: 20px !important;
}

/* 确保"记住我"区域不受表单行样式影响 */
.animeai-login-container .form-row:not(.woocommerce-form-row) {
    display: block !important;
    text-align: center !important;
}

/* 美化"记住我"标签 */
.animeai-login-container .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    justify-content: flex-start !important;
}


/* 隐藏所有 Remember me 复选框 */
.animeai-login-container .woocommerce-form-login__rememberme,
.animeai-login-container .animeai-remember-lost-row .woocommerce-form-login__rememberme,
.animeai-login-container .form-row .woocommerce-form-login__rememberme,
.animeai-login-container .woocommerce-form-login > p .woocommerce-form-login__rememberme,
.animeai-login-container .woocommerce-form-login > .form-row > label.woocommerce-form-login__rememberme,
.animeai-login-container input[name="rememberme"],
.animeai-login-container label[class*="rememberme"] {
    display: none !important;
}

/* 密码匹配提示消息样式 */
.animeai-login-container .animeai-password-match-message {
    margin-top: 8px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    transition: all 0.3s ease !important;
}

.animeai-login-container .animeai-password-match-message.success {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%) !important;
    color: #2e7d32 !important;
    border-left: 4px solid #4caf50 !important;
}

.animeai-login-container .animeai-password-match-message.error {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%) !important;
    color: #c62828 !important;
    border-left: 4px solid #e53e3e !important;
}

.animeai-login-container .animeai-password-match-message.success::before {
    content: '✓ ';
    font-weight: bold;
}

.animeai-login-container .animeai-password-match-message.error::before {
    content: '⚠ ';
    font-weight: bold;
}

/* 忘记密码页面样式 */
.animeai-login-container .animeai-lost-password-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.animeai-login-container .animeai-lost-password-description {
    margin: 0 0 40px 0;
    text-align: center;
}

.animeai-login-container .animeai-lost-password-description p {
    color: #6b7280 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 20px !important;
}

/* Cancel链接样式 */
.animeai-login-container .animeai-cancel-link {
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid transparent !important;
    display: inline-block !important;
    margin-top: 0 !important;
}

.animeai-login-container .animeai-cancel-link:hover {
    color: #374151 !important;
    text-decoration: none !important;
    border-bottom-color: #374151 !important;
}

/* 确保忘记密码表单的输入框样式一致 */
.animeai-login-container .woocommerce-ResetPassword .woocommerce-Input {
    border-radius: 20px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    height: 48px !important;
    line-height: 24px !important;
    width: 100% !important;
    margin: 0 !important;
}

.animeai-login-container .woocommerce-ResetPassword .woocommerce-Input:focus {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: none !important;
    outline: none !important;
}

.animeai-login-container .woocommerce-ResetPassword .woocommerce-Input::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* 忘记密码表单行样式 */
.animeai-login-container .woocommerce-ResetPassword .woocommerce-form-row {
    margin-bottom: 30px !important;
}

/* 忘记密码页面按钮行特殊间距 */
.animeai-login-container .woocommerce-ResetPassword .woocommerce-form-row:last-of-type {
    margin-bottom: 20px !important;
}

/* 忘记密码页面登录链接容器间距 */
.animeai-login-container .animeai-lost-password-container .animeai-login-links {
    margin-top: 0 !important;
}

/* Enhanced Reset Form Styles */
.animeai-enhanced-reset-page .animeai-form-messages {
    margin: 0 0 20px 0;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

.animeai-enhanced-reset-page .animeai-form-messages.success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.animeai-enhanced-reset-page .animeai-form-messages.error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

.animeai-enhanced-reset-page .animeai-form-messages.info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

/* Password Reset Verification Code Styles */
.animeai-enhanced-reset-page .animeai-email-verification-row {
    margin-bottom: 25px !important;
}

.animeai-enhanced-reset-page .animeai-verification-input-group {
    display: flex !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.animeai-enhanced-reset-page .animeai-verification-code {
    flex: 1 !important;
    min-width: 0 !important;
}

.animeai-enhanced-reset-page .animeai-get-verification-code-btn {
    flex-shrink: 0 !important;
    width: 120px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    padding: 12px 8px !important;
    background: linear-gradient(135deg, #e879a6 0%, #ff9f7a 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.animeai-enhanced-reset-page .animeai-get-verification-code-btn:hover {
    background: linear-gradient(135deg, #dd6b96 0%, #ff8f6a 100%) !important;
}

.animeai-enhanced-reset-page .animeai-get-verification-code-btn:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.animeai-enhanced-reset-page .animeai-get-verification-code-btn.loading {
    background: linear-gradient(135deg, #e879a6 0%, #ff9f7a 100%) !important;
}

.animeai-enhanced-reset-page .animeai-get-verification-code-btn.counting {
    background: linear-gradient(135deg, #e879a6 0%, #ff9f7a 100%) !important;
}

/* Password Reset Messages */
.animeai-enhanced-reset-page .animeai-verification-message {
    margin-top: 10px !important;
    padding: 10px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.animeai-enhanced-reset-page .animeai-verification-message.success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #28a745 !important;
}

.animeai-enhanced-reset-page .animeai-verification-message.error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #dc3545 !important;
}

.animeai-enhanced-reset-page .animeai-verification-message.info {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #17a2b8 !important;
}

/* Password Match Message for Reset */
.animeai-enhanced-reset-page .animeai-password-match-message {
    margin-top: 8px !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
}

.animeai-enhanced-reset-page .animeai-password-match-message.success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #28a745 !important;
}

.animeai-enhanced-reset-page .animeai-password-match-message.error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #dc3545 !important;
}

/* Enhanced Reset Button - 与登录注册按钮保持一致 */
.animeai-enhanced-reset-page #animeai-reset-password-btn {
    background: linear-gradient(135deg, #e879a6 0%, #ff9f7a 100%) !important;
    border: none !important;
    color: white !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    width: 200px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(232, 121, 166, 0.4) !important;
}

.animeai-enhanced-reset-page #animeai-reset-password-btn:hover {
    background: linear-gradient(135deg, #dd6b96 0%, #ff8f6a 100%) !important;
    color: white !important;
    transform: none !important;
    box-shadow: 0 6px 20px rgba(232, 121, 166, 0.6) !important;
}

.animeai-enhanced-reset-page #animeai-reset-password-btn:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
}

/* 隐藏忘记密码表单的标签 */
.animeai-login-container .woocommerce-ResetPassword .woocommerce-form-row label:not(.woocommerce-form__label-for-checkbox) {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}


/* 美化链接样式 */
.animeai-login-container a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.animeai-login-container a:hover {
    color: #374151;
    text-decoration: none;
}

/* 表单切换动画效果 */
.animeai-register-form-container.show {
    display: block !important;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .animeai-login-container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .animeai-login-header {
        gap: 12px;
    }
    
    .animeai-login-title {
        font-size: 24px;
    }
    
    .animeai-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* 移动端输入框样式 */
    .animeai-login-container .woocommerce-Input {
        height: 44px !important;
        font-size: 16px !important;
    }
    
    /* 移动端按钮样式 */
    .animeai-login-btn,
    .animeai-register-btn {
        width: 140px !important;
    }
    
    .animeai-login-container .form-row:not(.woocommerce-form-row) {
        text-align: center !important;
    }
    
    /* 移动端Lost password布局（Remember me已隐藏） */
    .animeai-login-container .animeai-remember-lost-row {
        justify-content: center !important;
        margin: 10px 0 15px 0 !important;
    }

    /* 移动端忘记密码页面样式 */
    .animeai-login-container .animeai-lost-password-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .animeai-login-container .animeai-lost-password-description p {
        font-size: 15px !important;
        padding: 0 10px !important;
    }

    .animeai-login-container .animeai-cancel-link {
        font-size: 15px !important;
        margin-top: 0 !important;
    }

    /* 移动端忘记密码页面按钮行间距 */
    .animeai-login-container .woocommerce-ResetPassword .woocommerce-form-row:last-of-type {
        margin-bottom: 20px !important;
    }

    /* 移动端忘记密码输入框样式 */
    .animeai-login-container .woocommerce-ResetPassword .woocommerce-Input {
        height: 44px !important;
        font-size: 16px !important;
    }
}

/* 移除WooCommerce默认的一些样式干扰 */
.animeai-login-container .woocommerce-form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 确保错误提示正常显示 */
.animeai-login-container .woocommerce-error,
.animeai-login-container .woocommerce-message,
.animeai-login-container .woocommerce-info {
    margin-bottom: 20px !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

/* 美化错误提示 */
.animeai-login-container .woocommerce-error {
    background: #ffeaea !important;
    color: #c62828 !important;
    border-left: 4px solid #e53e3e !important;
}

.animeai-login-container .woocommerce-message {
    background: #e8f5e8 !important;
    color: #2e7d32 !important;
    border-left: 4px solid #4caf50 !important;
}

.animeai-login-container .woocommerce-info {
    background: #e3f2fd !important;
    color: #1565c0 !important;
    border-left: 4px solid #2196f3 !important;
}

/* 确保焦点样式不被主题覆盖 */
.animeai-login-container input:focus,
.animeai-login-container button:focus {
    outline: none !important;
}

.animeai-login-container button:focus {
    box-shadow: 0 0 0 3px rgba(232, 121, 166, 0.3) !important;
}

/* 加载状态样式 */
.animeai-login-btn:disabled,
.animeai-register-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* 确保在不同主题下都能正常显示 */
.animeai-login-container * {
    box-sizing: border-box;
}

.animeai-login-container .button {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: inherit !important;
}

/* ========== 邮箱验证码样式 ========== */
.animeai-email-verification-row {
    margin-bottom: 20px;
}

.animeai-verification-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.animeai-verification-code {
    flex: 1;
    min-width: 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    font-size: 16px;
}

.animeai-get-verification-code-btn {
    background: linear-gradient(135deg, #e879a6 0%, #ff9f7a 100%) !important;
    color: white;
    border: none;
    border-radius: 20px !important;
    padding: 12px 30px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-width: 120px;
    transition: all 0.2s ease !important;
    position: relative;
    overflow: hidden;
    text-shadow: none;
    box-shadow: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animeai-get-verification-code-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e88e5 0%, #4caf50 100%);
    transform: none;
    box-shadow: none;
}

.animeai-get-verification-code-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.animeai-get-verification-code-btn .btn-text,
.animeai-get-verification-code-btn .btn-countdown {
    display: block;
    transition: opacity 0.3s ease;
    width: 100%;
    text-align: center;
}

.animeai-get-verification-code-btn.counting .btn-text {
    display: none;
}

.animeai-get-verification-code-btn.counting .btn-countdown {
    display: block;
    width: 100%;
    text-align: center;
}

.animeai-verification-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.animeai-verification-message.success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.animeai-verification-message.error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.animeai-verification-message.info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

/* 验证码输入框特殊效果 */
.animeai-verification-code:focus {
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
    border-color: #42a5f5;
}

/* 加载动画 */
.animeai-get-verification-code-btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.animeai-get-verification-code-btn.loading .btn-text,
.animeai-get-verification-code-btn.loading .btn-countdown,
.animeai-enhanced-reset-page .animeai-get-verification-code-btn.loading .btn-text,
.animeai-enhanced-reset-page .animeai-get-verification-code-btn.loading .btn-countdown {
    opacity: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 验证码字段响应式设计 */
@media (max-width: 768px) {
    .animeai-verification-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .animeai-get-verification-code-btn {
        min-width: 100%;
        order: 2;
    }
    
    .animeai-verification-code {
        order: 1;
    }
}

/* ========================================
   AJAX注册消息样式
   ======================================== */
#ajax-registration-messages {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: none;
    transition: all 0.3s ease;
    border: 1px solid;
}

#ajax-registration-messages.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
    color: #047857;
}

#ajax-registration-messages.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    color: #dc2626;
}

#ajax-registration-messages.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    color: #1d4ed8;
}

/* 加载状态样式 */
.woocommerce-form-register button.loading,
.woocommerce-form-register input[type="submit"].loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.woocommerce-form-register button.loading::after,
.woocommerce-form-register input[type="submit"].loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}