/* 登录页面样式 */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #4a90e2, #2c56dd);
}

/* 头部样式 */
.login-header {
    margin-bottom: 40px;
    text-align: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.slogan {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* 表单样式 */
.login-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group input {
    width: 100%;
    height: 48px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #4a90e2;
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle-password::before {
    content: "👁️";
    cursor: pointer;
}

.toggle-password.show {
    content: "🙈";
    font-size: 16px;
}

.btn-primary {
    width: 100%;
    height: 48px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #3a80d2;
}

.btn-primary:active {
    background-color: #2a70c2;
}

/* 按钮样式 */
.form-group .form-button {
    display: block;
    margin: 0 auto;
    width: 200px;
    max-width: 100%;
}

/* 链接样式 */
.form-links {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.form-links .link-item {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
}

.form-links .link-item:hover {
    text-decoration: underline;
}

/* 底部样式 */
.login-footer {
    margin-top: auto;
    text-align: center;
}

.agreement {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.agreement a {
    color: #fff;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

/* 加载遮罩 */
.loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式调整 */
@media (min-width: 768px) {
    .login-form {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 古希腊神殿登录页面样式 */

/* ==================== 页面基础样式 ==================== */
.ancient-login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ancient-ivory) 0%, var(--ancient-marble) 50%, var(--ancient-pearl) 100%);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* 大理石纹理背景增强 */
.ancient-login-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(205, 133, 63, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(27, 54, 93, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.04) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(205, 133, 63, 0.02) 50%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ==================== 神殿入口容器 ==================== */
.temple-entrance {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

/* ==================== 神殿柱式装饰 ==================== */
.temple-columns {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.temple-columns .doric-column {
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 30px;
    background: linear-gradient(to right, 
        var(--ancient-marble) 0%, 
        var(--ancient-ivory) 20%, 
        var(--ancient-marble) 40%,
        var(--ancient-ivory) 60%,
        var(--ancient-marble) 80%,
        var(--ancient-ivory) 100%
    );
    border: 2px solid var(--ancient-terracotta);
    box-shadow: 
        inset 2px 0 4px rgba(205, 133, 63, 0.2),
        inset -2px 0 4px rgba(205, 133, 63, 0.2),
        4px 0 8px rgba(0, 0, 0, 0.1);
}

.temple-columns .left-column {
    left: -15px;
    transform: rotate(-1deg);
    animation: slideInLeft 1.2s ease-out 0.3s both;
}

.temple-columns .right-column {
    right: -15px;
    transform: rotate(1deg);
    animation: slideInRight 1.2s ease-out 0.3s both;
}

/* 柱头装饰 */
.temple-columns .doric-column::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -4px;
    right: -4px;
    height: 16px;
    background: linear-gradient(135deg, var(--ancient-terracotta), var(--ancient-bronze));
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 柱基装饰 */
.temple-columns .doric-column::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -4px;
    right: -4px;
    height: 16px;
    background: linear-gradient(135deg, var(--ancient-bronze), var(--ancient-terracotta));
    border-radius: 4px 4px 8px 8px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/* ==================== 神殿门楣 ==================== */
.temple-pediment {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    z-index: 2;
    animation: fadeInDown 1s ease-out 0.6s both;
}

.pediment-decoration {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ancient-gold), var(--ancient-copper));
    clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.pediment-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--ancient-terracotta) 0px,
        var(--ancient-terracotta) 8px,
        var(--ancient-gold) 8px,
        var(--ancient-gold) 16px
    );
}

/* ==================== 登录神殿主体 ==================== */
.login-temple {
    position: relative;
    z-index: 3;
    margin-top: 40px;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 240, 0.95) 0%, 
        rgba(245, 245, 245, 0.9) 100%
    );
    backdrop-filter: blur(10px);
    border: 2px solid var(--ancient-terracotta);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
    animation: templeRise 1.5s ease-out 0.9s both;
}

.login-temple::before {
    background: linear-gradient(90deg, 
        var(--ancient-gold) 0%, 
        var(--ancient-terracotta) 25%, 
        var(--ancient-gold) 50%,
        var(--ancient-terracotta) 75%,
        var(--ancient-gold) 100%
    );
}

/* ==================== 神殿标题区 ==================== */
.temple-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.temple-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 3px;
    position: relative;
}

.temple-title::before,
.temple-title::after {
    content: '⚜';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ancient-gold);
    font-size: 1.2rem;
}

.temple-title::before {
    left: -30px;
}

.temple-title::after {
    right: -30px;
}

.temple-subtitle {
    font-size: 0.9rem;
    margin: 10px 0 0 0;
    font-style: italic;
    opacity: 0.8;
}

/* ==================== 神圣表单 ==================== */
.sacred-form {
    position: relative;
}

.sacred-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.sacred-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-container {
    position: relative;
    transition: all 0.3s ease;
}

.input-container .form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: none;
    background: rgba(255, 255, 240, 0.8);
    transition: all 0.3s ease;
}

.input-container .form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.input-container:focus-within {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* 输入框装饰效果 */
.input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--ancient-gold) 50%, 
        transparent 100%
    );
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.input-container:focus-within::before {
    transform: scaleX(1);
}

/* 错误消息样式 */
.error-msg {
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-msg:not(:empty) {
    opacity: 1;
    transform: translateY(0);
    animation: shake 0.5s ease-in-out;
}

/* ==================== 神殿链接 ==================== */
.temple-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(205, 133, 63, 0.3);
}

.sacred-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
}

.sacred-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--ancient-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.sacred-link:hover {
    transform: translateY(-1px);
    color: var(--ancient-gold) !important;
}

.sacred-link:hover::after {
    width: 100%;
}

/* ==================== 加载遮罩 ==================== */
.loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 245, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--ancient-marble);
    border-top: 4px solid var(--ancient-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loading-spinner::before {
    content: '⚜';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--ancient-terracotta);
    font-size: 20px;
}

/* ==================== 动画定义 ==================== */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px) rotate(-1deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotate(-1deg);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px) rotate(1deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotate(1deg);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        transform: translateX(-50%) translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes templeRise {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .temple-entrance {
        max-width: 90%;
        padding: 15px;
    }
    
    .login-temple {
        padding: 30px 20px 25px;
        margin-top: 30px;
    }
    
    .temple-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
    
    .temple-title::before,
    .temple-title::after {
        font-size: 1rem;
    }
    
    .temple-title::before {
        left: -20px;
    }
    
    .temple-title::after {
        right: -20px;
    }
    
    .temple-columns .doric-column {
        width: 20px;
    }
    
    .temple-columns .left-column {
        left: -10px;
    }
    
    .temple-columns .right-column {
        right: -10px;
    }
    
    .temple-pediment {
        width: 70%;
        height: 30px;
        top: -15px;
    }
}

@media (max-width: 576px) {
    .temple-entrance {
        padding: 10px;
    }
    
    .login-temple {
        padding: 25px 15px 20px;
        margin-top: 25px;
    }
    
    .temple-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .temple-title::before,
    .temple-title::after {
        display: none;
    }
    
    .sacred-form .form-group {
        margin-bottom: 20px;
    }
    
    .input-container .form-control {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .temple-columns {
        display: none;
    }
    
    .temple-pediment {
        width: 60%;
        height: 25px;
        top: -12px;
    }
}

/* ==================== 特殊效果 ==================== */
.w-100 {
    width: 100% !important;
}

/* 增强按钮效果 */
.btn-ancient.temple-glow:hover {
    animation: templeGlow 2s ease-in-out infinite;
    transform: translateY(-3px);
}

.btn-ancient .btn-text {
    position: relative;
    z-index: 1;
} 