* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.form-box {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.form-box input {
    width: 100%;
    height: 40px;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    line-height: normal;
}

h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #007bff;
}

.link-text {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

.link-text a {
    color: #007bff;
    text-decoration: none;
}

.link-text a:hover {
    text-decoration: underline;
}

.login-image {
    width: 80px;
    height: auto;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 20px;
    display: block;
    border-radius: 50%;
}

.login-image2 {
    width: 80px;
    height: auto;
    position: relative;
    left: 15%;
    transform: translateX(-50%);
    margin-bottom: 20px;
    border-radius: 50%;
}

#toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    display: none;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container label {
    display: block;
    margin-top: 15px;
}

.container input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.container button {
    width: 100%;
    padding: 10px;
    background-color: #05070a;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.container button:hover {
    background-color: #1d2d3f;
}

.input-group .code-btn {
    padding: 0;
    height: 34px;
    width: 60px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 12px;
    line-height: normal;
    margin-top: -13px;
}

.input-group .code-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.guide-box {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.guide-text {
    color: #666;
    font-size: 14px;
    margin: 20px 0;
}

.guide-link a {
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
}

.guide-link a:hover {
    text-decoration: underline;
}

.guide-tip {
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}

.loading-box {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: gradient 3s ease infinite;
    background: linear-gradient(45deg, #f3ec78, #af4261, #4facfe);
    background-size: 200% 200%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loading-box h2 {
    font-size: 24px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}