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

html{
    font-size: 10px;
    background-image: url("img/倒影-天空-天空倒影.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}  

html::before{
    content: "";
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
    backdrop-filter: blur(1rem);
}

::selection{
    background-color: rgba(114,129,241);
    color: #fff;
}

.box-login{
    display: flex;
    width: 90rem;
    height: 55rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    margin: 8% auto;
    box-shadow: 0 0 2rem 0.5rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.box-login .left-login{
    position: relative;
    width: 35%;
    height: 100%;
    background-color: skyblue;
    border-radius: 1.5rem 0 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-login .left-login::before{ 
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: url("img/大树-少女-彩虹.png");
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    border-radius: 1.5rem 0 0 1.5rem;
}

.welcome-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 3rem;
}

.welcome-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-content p {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.box-login .right-login{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65%;
    padding: 2rem;
}

.box-login .right-login h4{ 
    color: rgb(114,129,241);
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 600;
    text-align: center;
}

.box-login .right-login form{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 40rem;
}

.box-login .right-login form .ac{
    outline: none;
    width: 100%;
    height: 5rem;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding: 1rem 1.6rem;
    border: 2px solid transparent;
    border-bottom: 2px solid rgb(114,129,241);
    color: rgb(114,129,241);
    background-color: rgba(0,0,0,0);
    transition: all 0.3s ease;
}

.box-login .right-login form .ac::placeholder{
    color: rgba(114,129,241, 0.6);
}

.box-login .right-login form .ac:focus{ 
    outline: none;
    border-bottom: 2px solid rgb(90,105,220);
    box-shadow: 0 2px 0 rgba(114,129,241, 0.3);
    transform: translateY(-2px);
}

.right-login .submit{
    width: 100%;
    height: 5rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    border-radius: 2.5rem;
    margin: 2rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.right-login .submit:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.right-login .submit:active{
    transform: translateY(-1px);
}

.right-login .fn{
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2rem;
}

.right-login .fn a{
    color: #666;
    font-size: 1.3rem;
    padding: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.right-login .fn a:hover{
    color: rgb(114,129,241);
    text-decoration: underline;
}

/* 复选框样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    width: 100%;
}

.checkbox-container input[type="checkbox"] {
    width: 1.8rem;
    height: 1.8rem;
    accent-color: rgb(114, 129, 241);
    cursor: pointer;
}

.checkbox-container label {
    font-size: 1.4rem;
    color: rgb(114, 129, 241);
    cursor: pointer;
    user-select: none;
}

.checkbox-container label:hover {
    color: rgb(90, 105, 220);
}

/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid rgb(114, 129, 241);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 1.6rem;
    margin: 0;
}

/* 消息提示样式 */
.message-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    max-width: 400px;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.message-toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.message-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.message-toast.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.message-toast.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-content i {
    font-size: 2rem;
}

.message-content span {
    font-size: 1.4rem;
    font-weight: 500;
}

.message-toast.fade-out {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 注册表单额外样式 */
#registerForm {
    width: 100%;
}

#registerForm h4 {
    color: rgb(114,129,241);
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 600;
    text-align: center;
}

#registerForm form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 40rem;
}

#registerForm .ac {
    outline: none;
    width: 100%;
    height: 5rem;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding: 1rem 1.6rem;
    border: 2px solid transparent;
    border-bottom: 2px solid rgb(114,129,241);
    color: rgb(114,129,241);
    background-color: rgba(0,0,0,0);
    transition: all 0.3s ease;
}

#registerForm .ac::placeholder {
    color: rgba(114,129,241, 0.6);
}

#registerForm .ac:focus {
    outline: none;
    border-bottom: 2px solid rgb(90,105,220);
    box-shadow: 0 2px 0 rgba(114,129,241, 0.3);
    transform: translateY(-2px);
}

#registerForm .submit {
    width: 100%;
    height: 5rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    border-radius: 2.5rem;
    margin: 2rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

#registerForm .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#registerForm .submit:active {
    transform: translateY(-1px);
}

#registerForm .fn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

#registerForm .fn a {
    color: #666;
    font-size: 1.3rem;
    padding: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

#registerForm .fn a:hover {
    color: rgb(114,129,241);
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .box-login {
        flex-direction: column;
        width: 95%;
        height: auto;
        margin: 5% auto;
    }
    
    .box-login .left-login,
    .box-login .right-login {
        width: 100%;
    }
    
    .box-login .left-login {
        height: 20rem;
        border-radius: 1.5rem 1.5rem 0 0;
    }
    
    .box-login .right-login {
        padding: 3rem 2rem;
    }
    
    .message-toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .loading-content p {
        font-size: 1.4rem;
    }
    
    .checkbox-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .checkbox-container label {
        font-size: 1.2rem;
    }
}
