

:root {
    --primary: #e75c5c;
    --secondary: #ffeba4;
    --accent: #FF7675;
    --bg: #f8f9ff;
}


.form-container {
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
    margin: 100px auto;
}

.form-container:hover {
    transform: translateY(-5px);
}


.form-container h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 3.2em;
    font-weight: bold;
    position: relative;
    z-index: 2;
}
/* 表单组样式 */
.form-group {
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 2;
}

.form-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3436;
    font-weight: 500;
    padding-left: 5px;
}

.input-field {
    width: 550px;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}
.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

/* 图标嵌入效果 */
.icon-input {
    position: relative;
}

.icon-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    transition: color 0.3s ease;
}

.icon-input input {
    padding-left: 20px;
}

/* 动态标签动画 */
.floating-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-field:focus + .floating-label,
.input-field:not(:placeholder-shown) + .floating-label {
    top: -10px;
    left: 10px;
    font-size: 0.8em;
    color: var(--primary);
    background: white;
    padding: 0 5px;
}

/* 特殊表单元素 */
select.input-field {
    appearance: none;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C5CE7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 1rem center/15px;
}

/* 提交按钮设计 */
.submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
}


.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgb(231 92 92 / 30%);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    h2 {
        font-size: 1.8em;
    }
}
