/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主题变量 - 保持现有颜色 */
:root {
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --accent-color: rgba(52, 199, 89, 0.8);
    --text-color: white;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

/* 页面布局 */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 登录容器 - 左右分布，移除背景色保持一致 */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    /* 移除背景色和blur效果 */
}

/* 左侧时钟部分 */
.clock-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.digital-clock {
    position: relative;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 425px;
    padding: 20px 45px;
    box-shadow: 0 5px 25px rgba(14, 21, 37, 0.8);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.digital-clock:before {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    background-size: 200% 200%;
    top: -5px;
    left: -5px;
    bottom: -5px;
    right: -5px;
    z-index: -1;
    filter: blur(40px);
    animation: glowing 10s ease infinite;
}

@keyframes glowing {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* 时钟显示样式 */
.time {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hours, .dots, .minutes {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    padding: 0 10px;
    line-height: 125px;
}

.hours, .minutes {
    font-size: 6.5em;
    width: 125px;
}

.dots {
    font-size: 5em;
    color: #929292;
}

.hours {
    background: -webkit-linear-gradient(90deg, #634dff, #5fd4ff);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.minutes {
    background: -webkit-linear-gradient(90deg, #ff5e9e, #ffb960);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

/* 右侧时间显示 */
.right-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-left: 10px;
}

.period, .seconds {
    font-size: 1.2em;
    font-weight: 500;
}

.period {
    transform: translateY(-20px);
    background: -webkit-linear-gradient(90deg, #f7b63f, #faf879);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.seconds {
    transform: translateY(16px);
    background: -webkit-linear-gradient(90deg, #24ff6d, #2f93f1);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

/* 日历显示 */
.calender {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 5px;
    background: -webkit-linear-gradient(90deg, #ae4af6, #ff98d1);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.day-name, .day-num {
    margin-left: 8px;
}

/* 时钟格式切换按钮样式 */
.dot-menu-btn {
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    color: #efefef;
    font-size: 1.5em;
    cursor: pointer;
}

.dot-menu {
    z-index: 999;
    position: absolute;
    top: 7px;
    right: 5px;
    list-style: none;
    background: #353e54;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: 0.4s ease;
}

.dot-menu.active {
    visibility: visible;
    opacity: 1;
}

.menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-format-text {
    color: #efefef;
    font-size: 0.9em;
    margin-right: 20px;
}

.format-switch-btn {
    width: 35px;
    height: 15px;
    background: #485470;
    border-radius: 75px;
    box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.1),
                inset -2px -2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.format-switch-btn:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ff5e9a;
    border-radius: 50%;
    box-shadow: 0 5px 25px #ff5e9a;
    transform: translateX(-10px);
    transition: 0.4s ease;
    transition-property: background, transform;
}

.format-switch-btn.active:before {
    background: #0bff8d;
    box-shadow: 0 5px 25px #0bff8d;
    transform: translateX(10px);
}

/* 右侧登录表单部分 */
.login-form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

/* 系统标题 */
.system-title {
    text-align: center;
    margin-bottom: 2rem;
}

.system-title h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

/* 现代化表单样式 */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: formAppear 0.6s ease-out;
}

.modern-form button {
    align-self: flex-end;
}

.flex-column > label {
    color: #151717;
    font-weight: 600;
    margin-bottom: 5px;
}

.inputForm {
    border: 1.5px solid #ecedec;
    border-radius: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    transition: 0.2s ease-in-out;
    background: white;
    position: relative;
    overflow: hidden;
}

.inputForm svg {
    fill: var(--gradient-start);
    opacity: 0.7;
    transition: 0.2s ease-in-out;
}

.input {
    margin-left: 10px;
    border-radius: 10px;
    border: none;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: #151717;
}

.input:focus {
    outline: none;
}

.inputForm:focus-within {
    border: 1.5px solid var(--gradient-start);
}

.inputForm:focus-within svg {
    fill: var(--gradient-start);
    opacity: 1;
}

/* 输入框聚焦动画 */
.inputForm::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.inputForm:focus-within::after {
    width: 100%;
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin: 10px 0;
}

.flex-row > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flex-row > div > label {
    font-size: 14px;
    color: #151717;
    font-weight: 400;
    cursor: pointer;
}

.flex-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gradient-start);
    cursor: pointer;
}

.span {
    font-size: 14px;
    color: var(--gradient-start);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.span:hover {
    color: var(--gradient-end);
}

.button-submit {
    margin: 20px 0 10px 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    height: 50px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.button-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.button-submit:active {
    transform: translateY(0);
}

.register-link {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.p {
    text-align: center;
    color: #151717;
    font-size: 14px;
    margin: 5px 0;
}

/* 链接样式 */
a.span {
    text-decoration: none;
    font-weight: 600;
}

a.span:hover {
    text-decoration: underline;
}

/* 表单动画效果 */
@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .clock-section {
        flex: none;
        padding: 1rem;
    }
    
    .digital-clock {
        width: 350px;
        padding: 15px 30px;
    }
    
    .hours, .minutes {
        font-size: 4em;
        width: 80px;
    }
    
    .dots {
        font-size: 3em;
    }
    
    .system-title h1 {
        font-size: 2rem;
    }
    
    .login-form-section {
        flex: none;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .digital-clock {
        width: 300px;
        padding: 10px 20px;
    }
    
    .hours, .minutes {
        font-size: 3em;
        width: 60px;
    }
    
    .dots {
        font-size: 2.5em;
    }
    
    .system-title h1 {
        font-size: 1.8rem;
    }
    
    .modern-form {
        width: 90%;
        max-width: 350px;
        padding: 25px;
    }
    
    .flex-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .clock-section {
        padding: 0.5rem;
    }
    
    .digital-clock {
        width: 250px;
        padding: 8px 15px;
    }
    
    .hours, .minutes {
        font-size: 2.5em;
        width: 50px;
        padding: 0 5px;
    }
    
    .dots {
        font-size: 2em;
    }
    
    .system-title h1 {
        font-size: 1.5rem;
    }
}

/* 消息提示样式 */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.alert.success {
    background: linear-gradient(135deg, #34c759, #30d158);
}

.alert.error {
    background: linear-gradient(135deg, #ff3b30, #ff453a);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 3秒后自动淡出 */
.alert {
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-out 3s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* 加载状态样式 */
.button-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.button-submit:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
} 