/* static/css/login.css */

/* 登录页面特定样式 */
.login-container {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 0 1.2rem;
}

/* 隐藏父模板header底部分割线 */
.login-page .content-header {
    border-bottom: none !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0 !important;
}

/* 登录表单 */
.login-form {
    padding: 1.8rem 1.5rem;
    animation: fadeIn 0.5s ease;
}

.login-input-group {
    margin-bottom: 1.8rem;
}

.login-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: #5b67c9;
    font-size: 1.05rem;
}

.login-input {
    width: 100%;
    min-height: 52px;
    padding: 0 1rem;
    border: 1px solid rgba(199, 210, 254, 0.5);
    border-radius: 8px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.login-input:focus {
    outline: none;
    border-color: #7c87ff;
    box-shadow: 0 0 0 2px rgba(124, 135, 255, 0.2);
}

.login-submit-btn {
    width: 100%;
    background-color: #7c87ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0;
    height: 56px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.login-submit-btn:hover {
    background-color: #5b67c9;
    box-shadow: 0 4px 10px rgba(124, 135, 255, 0.2);
    transform: translateY(-2px);
}

/* 注册提示折叠框 */
.register-tip {
    margin-top: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(199, 210, 254, 0.5);
    overflow: hidden;
    background: rgba(240, 245, 255, 0.3);
}

.tip-header {
    width: 100%;
    padding: 1rem 1.2rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 500;
    color: #5b67c9;
}

.tip-arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-right: 2px solid #5b67c9;
    border-bottom: 2px solid #5b67c9;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.tip-arrow.active {
    transform: rotate(-135deg);
}

.tip-content {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tip-content.active {
    padding: 0 1.2rem 1.2rem;
    max-height: 100px;
}

/* 小屏适配 */
@media (max-width: 480px) {
    .login-container {
        margin: 1rem auto;
    }

    .login-form {
        padding: 1.5rem 1.2rem;
    }

    .login-input-group {
        margin-bottom: 1.5rem;
    }

    .login-input {
        min-height: 48px;
        font-size: 1rem;
    }

    .login-submit-btn {
        height: 52px;
        font-size: 1rem;
    }

    .register-tip {
        margin-top: 1.2rem;
    }

    .tip-header {
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }

    .tip-content {
        font-size: 0.9rem;
    }
}