@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.bg-grid-white {
    background-image: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
                     linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
}

.transition-all-700 {
    transition: all 300ms ease-in-out;
}

.transition-all-200 {
    transition: all 100ms ease-out;
}

.transition-all-300 {
    transition: all 150ms ease-out;
}

.eye-animation {
    transition: transform 0.05s ease-out;
}

.pupil {
    transition: transform 0.05s ease-out;
}

.interactive-hover-button {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid;
    background-color: #ffffff;
    text-align: center;
    font-weight: 600;
}

.interactive-hover-button:hover > span:first-child {
    transform: translateX(12px);
    opacity: 0;
}

.interactive-hover-button:hover div {
    opacity: 1;
}

.eye-ball {
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: none;
}

.eye-ball[data-character="black"] {
    width: 16px;
    height: 16px;
}

.pupil {
    transition: transform 0.1s ease-out;
}

/* 验证码样式：输入区占满中间剩余宽度；左侧状态列与整行等高 */
.captcha-validation-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.captcha-status {
    flex: 0 0 auto;
    width: 48px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s;
    min-height: 48px;
}

.captcha-status.status-default {
    background-color: #f3f4f6;
    color: #9ca3af;
}

.captcha-status.status-valid {
    background-color: #dcfce7;
    color: #16a34a;
}

.captcha-status.status-invalid {
    background-color: #fee2e2;
    color: #dc2626;
}

.captcha-input-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.captcha-input-wrapper input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 14px;
    transition: all 0.2s;
}

.captcha-input-wrapper input:focus {
    outline: none;
    border-color: #6C3FF5;
    box-shadow: 0 0 0 2px rgba(108, 63, 245, 0.1);
}

/* 宽度随图片固有尺寸（与 /captcha 生成图一致），不额外拉宽 */
.captcha-image-wrapper {
    flex: 0 0 auto;
    width: auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    line-height: 0;
}

.captcha-image-wrapper img {
    display: block;
    width: auto;
    height: auto;
    max-height: 48px;
    max-width: 100%;
    vertical-align: middle;
}

.captcha-image-wrapper:hover {
    border-color: #6C3FF5;
}
