﻿/* ===== 青绿色医疗主题 ===== */
:root {
    --primary: #4DB6AC;
    --primary-light: #B2DFDB;
    --primary-dark: #009688;
    --primary-gradient: linear-gradient(135deg, #4DB6AC 0%, #80CBC4 100%);
    --wechat: #4CAF50;
    --text: #263238;
    --text-light: #546E7A;
    --text-lighter: #90A4AE;
    --bg: #f5fbfa;
    --card-bg: #ffffff;
    --border: #e0f2f1;
    --shadow: 0 5px 15px rgba(0, 150, 136, 0.08);
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.05"><path d="M45,30 Q60,20 75,30 T105,30 T135,30 T165,30 Q180,20 195,30 V170 Q180,180 165,170 T135,170 T105,170 T75,170 T45,170 Q30,180 15,170 V30Z" fill="%234DB6AC"/><circle cx="100" cy="100" r="15" fill="%234DB6AC"/></svg>') repeat;
}

.login-card {
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.card-header {
    background: var(--primary-gradient);
    padding: 30px 20px;
    border: none;
    text-align: center;
    color: white;
}

.card-body {
    padding: 30px;
}

.login-logo {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="48px" height="48px"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 15h-2v-6h2v6zm0-8h-2V7h2v2zm3 8h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat center;
    width: 80px;
    height: 80px;
    display: inline-block;
    text-indent: -9999px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 5px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

    .input-group:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(77, 182, 172, 0.25);
    }

.input-group-text {
    background: #f8f9fa;
    border: none;
    color: var(--text-light);
    padding: 0 18px;
}

.form-control {
    border: none;
    padding: 14px 18px;
    font-size: 1rem;
    height: auto;
    box-shadow: none;
    background: white;
}

    .form-control::placeholder {
        font-size: 0.95rem;
        opacity: 0.7;
    }

    .form-control:focus {
        box-shadow: none;
        background: white;
    }

.form-control-lg {
    padding: 14px 18px;
}

.login-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .login-btn:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, #4DB6AC 100%);
        transform: translateY(-2px);
    }

.wechat-btn {
    background: var(--wechat);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.2s ease;
}

    .wechat-btn:hover {
        background: #43A047;
        color: white;
    }

/* 修复验证码按钮样式 - 移除了左边框 */
.send-code-btn {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 0 15px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 120px;
    border-radius: 0 8px 8px 0;
    position: relative;
}

    /* 添加自然的分隔线 */
    .send-code-btn::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background-color: rgba(77, 182, 172, 0.3);
    }

    .send-code-btn:hover {
        background: var(--primary);
        color: white;
    }

        .send-code-btn:hover::before {
            background-color: rgba(255, 255, 255, 0.3);
        }

    .send-code-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        background: var(--primary-light);
        color: var(--text-lighter);
    }

        .send-code-btn:disabled::before {
            background-color: rgba(77, 182, 172, 0.2);
        }

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--border);
    }

    .divider::before {
        margin-right: 15px;
    }

    .divider::after {
        margin-left: 15px;
    }

.password-toggle {
    background: transparent !important;
    color: var(--text-lighter);
    cursor: pointer;
    transition: color 0.2s;
}

    .password-toggle:hover {
        color: var(--primary);
    }

.copyright {
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-top: 20px;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    color: #dc3545;
    padding: 12px 18px;
}

.medical-feature {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.medical-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

    .medical-icon:hover {
        transform: translateY(-5px);
        background: var(--primary);
        color: white;
    }

@media (max-width: 768px) {
    .login-card {
        border-radius: 14px;
    }

    .card-header {
        padding: 25px 15px;
    }

    .card-body {
        padding: 25px 20px;
    }

    .medical-feature {
        flex-wrap: wrap;
    }

    .form-control::placeholder {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .login-card {
        border-radius: 12px;
    }

    .card-header {
        padding: 20px 15px;
    }

    .card-body {
        padding: 20px 15px;
    }

    .medical-feature {
        gap: 15px;
    }

    .send-code-btn {
        min-width: 100px;
        font-size: 0.9rem;
        padding: 0 10px;
    }

        .send-code-btn::before {
            top: 15%;
            height: 70%;
        }
}
