/* 登录页面专用样式 - 替代Tailwind CSS */

/* 布局样式 */
.login-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 100vh;
}

@media (max-width: 1023px) {
    .login-container {
        flex-direction: column;
        gap: 2rem;
    }
}

/* 登录卡片样式 */
.login-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 24rem;
    transition: all 0.5s ease;
}

/* 输入组样式 */
.input-group {
    position: relative;
    margin-bottom: 1rem;
}

/* 表单间距样式 */
.form-space-y-4 > * + * {
    margin-top: 1rem;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem) scale(0.875);
    color: #3b82f6;
}

.input-group label {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    transition: all 0.2s ease;
    pointer-events: none;
    color: #6b7280;
}

.input-group input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: #3b82f6;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    transition: all 0.3s ease;
    width: 100%;
    padding: 0.5rem;
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    outline: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 品牌标识样式 */
.brand-logo {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 验证码包装器 */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 浮动装饰元素 */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    border-radius: 9999px;
}

.shape:nth-child(2) { animation-delay: -2s; }
.shape:nth-child(3) { animation-delay: -4s; }

/* 浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 文本样式 */
.text-center {
    text-align: center;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-blue-600 {
    color: #2563eb;
}

/* 字体粗细样式 */
.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

/* 圆角样式 */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* 间距样式 */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

/* 宽度样式 */
.w-full {
    width: 100%;
}

.max-w-sm {
    max-width: 24rem;
}

/* 变换样式 */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-500 {
    transition-duration: 500ms;
}

/* 动画样式 */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* 边框样式 */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-white {
    border-color: #ffffff;
}

.border-t-transparent {
    border-top-color: transparent;
}

/* 焦点样式 */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-blue-500:focus {
    border-color: #3b82f6;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:ring-blue-500:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:ring-offset-2:focus {
    outline-offset: 2px;
}

/* Flexbox 布局样式 */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.flex-1 {
    flex: 1 1 0%;
}

/* 间距样式 */
.ml-2 {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

/* 内边距样式 */
.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* 背景颜色样式 */
.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.text-blue-600 {
    color: #2563eb;
}

.text-white {
    color: #ffffff;
}

/* 隐藏样式 */
.hidden {
    display: none;
}

/* 内联块样式 */
.inline-block {
    display: inline-block;
}

/* 渐变背景样式 */
.gradient-green {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gradient-green .text-green-100 {
    color: #d1fae5;
}

/* 白色按钮样式 */
.btn-white {
    background-color: white;
    color: #059669;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.btn-white:hover {
    background-color: #f3f4f6;
}

/* 表单间距 */
.form-space-y-4 > * + * {
    margin-top: 1rem;
}

/* 记住我选项样式 */
.remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-me label {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    width: 1rem;
    height: 1rem;
}

.remember-me input[type="checkbox"]:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.remember-me span {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.remember-me a {
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.remember-me a:hover {
    color: #1e40af;
}