/* 基础样式重置 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f5f5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box.login {
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box.login:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.form-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avtar {
    margin-bottom: 25px;
}

.avtar .pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(20, 174, 92, 0.3);
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.avtar .pic img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
}

h1::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #14AE5C;
    margin: 15px auto 0;
    border-radius: 3px;
}

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn {
    width: 100%;
    max-width: 280px;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #328637, #1bd366);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 174, 92, 0.3);
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 174, 92, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-something {
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -1;
}

.user {
    position: absolute;
    top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.user .fa-user {
    font-size: 2.8rem;
    color: #14AE5C;
    margin-bottom: 10px;
}

.user .head {
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .form-content {
        padding: 30px 20px;
    }
    
    .avtar .pic {
        width: 85px;
        height: 85px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 12px;
        font-size: 15px;
        max-width: 240px;
    }
    
    .user {
        top: 20px;
    }
    
    .user .fa-user {
        font-size: 2.2rem;
    }
    
    .user .head {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .form-content {
        padding: 25px 15px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .btn {
        font-size: 14px;
    }
}