html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    outline-style: none
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

#wrapper {
    animation: fade-in 0.6s ease-out;
}

body {
    line-height: 1;
    font: 14px/1.5 "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", Roboto, Arial, sans-serif;
}

a {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent
}

a:hover, a:focus {
    text-decoration: none;
    outline-style: none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

input, select {
    vertical-align: middle
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* login */
html, body {
    height: 100%;
}

.page-login-v3:before {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    content: '';
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.page-login-v3:after {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    content: '';
    background: url(../../img/login/login_bg.jpg) center center/cover no-repeat;
    opacity: 0.3;
}

.container {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-body {
    display: inline-block;
    vertical-align: middle;
    width: 420px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 45px 45px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E6091, #2D6A4F, #1E6091);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-content {
}

.login-content .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-content .brand .brand-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(30, 96, 145, 0.2);
    transition: transform 0.3s ease;
}

.login-content .brand .brand-img:hover {
    transform: scale(1.05);
}

.login-content .brand .brand-text {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 24px !important;
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: 1px;
}

.login-form {
    margin: 40px 0 20px;
}

.login-form .form-group {
    margin: 24px 0;
    position: relative;
}

.login-form .form-group::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.login-form .form-group:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E6091'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.login-form .form-group:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E6091'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}

.login-form input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 20px 0 48px;
    font-size: 15px;
    color: #1a1a2e;
    background: #f8f9fc;
    border: 2px solid transparent;
    border-radius: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

.login-form input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.login-form input:focus {
    background: #fff;
    border-color: #1E6091;
    box-shadow: 0 0 0 4px rgba(30, 96, 145, 0.1), 0 4px 12px rgba(30, 96, 145, 0.1);
}

.login-form button {
    width: 100%;
    margin-top: 30px;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 2px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #1E6091 0%, #2D6A4F 100%);
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-form button::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 96, 145, 0.35);
}

.login-form button:hover::after {
    transform: translateX(4px);
}

.login-form button:active {
    transform: translateY(0);
}

.login-form button[disabled], .login-form button[disabled]:hover {
    background: linear-gradient(135deg, #a0aec0 0%, #cbd5e0 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-form button[disabled]::after {
    display: none;
}

/* 辅助链接 */
.login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf1;
}

.login-links a {
    color: #1E6091;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.login-links a:hover {
    color: #2D6A4F;
}

/* 安全提示 */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    color: #a0aec0;
    font-size: 12px;
}

.security-badge::before {
    content: '🔒';
    font-size: 14px;
}

/* 版权信息 */
.copyright {
    margin-top: 30px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.copyright a:hover {
    color: #fff;
}

/* 装饰元素 */
.decoration-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 96, 145, 0.1), rgba(45, 106, 79, 0.1));
    animation: float 6s ease-in-out infinite;
}

.decoration-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.decoration-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.decoration-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

/* 响应式 */
@media screen and (max-width: 480px) {
    .login-body {
        width: 100%;
        max-width: 360px;
        padding: 40px 30px 35px;
        border-radius: 20px;
    }
    
    .login-content .brand .brand-img {
        width: 56px;
        height: 56px;
    }
    
    .login-content .brand .brand-text {
        font-size: 20px !important;
    }
    
    .login-form input {
        height: 48px;
        font-size: 14px;
    }
    
    .login-form button {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .login-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media screen and (max-width: 360px) {
    .login-body {
        padding: 30px 25px 30px;
        border-radius: 16px;
    }
}
