* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 48px 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.header {
    text-align: center;
    margin-bottom: 36px;
}

.logo {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.header h1 {
    font-size: 20px;
    color: #1a1a2e;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 14px;
    color: #8e8ea0;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a2e;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group input::placeholder {
    color: #bbb;
}

.error-msg {
    font-size: 13px;
    color: #e53e3e;
    min-height: 20px;
    line-height: 20px;
}

.btn-submit {
    height: 46px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

.btn-loading {
    display: none;
}

.footer {
    margin-top: 32px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: #aaa;
}
