body{
    padding-top: 0;
}
.login-main {
    min-height: 100vh;
    background:#8A0906;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}


.login-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

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

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    margin-top: 20px;
}

.logo-section img{
    width: 60%;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: #FFD700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D00D09;
    font-size: 24px;
    font-weight: bold;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.logo-text {
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

.login-form-container {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.form-header h2 {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group .layui-input {
    height: 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group .layui-input:focus {
    border-color: #D00D09;
    background: white;
    box-shadow: 0 0 0 3px rgba(208, 13, 9, 0.1);
}

.register-link {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.register-link a {
    color: #D00D09;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #B00B08;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 48px;
    background: #D00D09;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.login-btn:hover {
    background: #B00B08;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 13, 9, 0.3);
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider span {
    background: white;
    color: #666;
    font-size: 14px;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 0;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 100%;
    height: 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.google-btn {
    color: #4285F4;
}

.google-btn:hover {
    border-color: #4285F4;
    background: #f8f9ff;
}

.facebook-btn {
    color: #1877F2;
}

.facebook-btn:hover {
    border-color: #1877F2;
    background: #f0f8ff;
}

.apple-btn {
    color: #000;
}

.apple-btn:hover {
    border-color: #000;
    background: #f5f5f5;
}

@media (min-width: 968px) {
    .login-container{
        width: 600px;
    }

    .login-main{
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .login-main {
        padding: 15px;
    }

    .login-container {
        max-width: 100%;
    }

    .login-form-container {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .logo-text {
        font-size: 28px;
    }

    .welcome-text {
        font-size: 14px;
    }

    .form-header h2 {
        font-size: 18px;
    }

    .form-group .layui-input {
        height: 44px;
        font-size: 14px;
    }

    .login-btn {
        height: 44px;
        font-size: 14px;
    }

    .social-btn {
        height: 44px;
        font-size: 14px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {



    .login-main {
        padding: 10px; width: 100%;
    }

    .login-form-container {
        padding: 24px 20px;
    }

    .logo-section {
        flex-direction: column;
        gap: 8px;
    }

    .logo-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .form-header h2 {
        font-size: 16px;
        line-height: 1.3;
    }

    .form-group label {
        font-size: 13px;
    }

    .register-link {
        font-size: 13px;
    }

    .divider span {
        font-size: 13px;
    }
}

/* 修正layui樣式覆蓋 */
.layui-form .layui-input:focus {
    border-color: #D00D09 !important;
}

.layui-btn-primary {
    border-color: #D00D09 !important;
    color: #D00D09 !important;
}

.layui-btn-primary:hover {
    background-color: #D00D09 !important;
    color: white !important;
}
