* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #e0e7ff 0%, #d1e0fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.login-header {
    padding: 35px 20px 25px;
    text-align: center;
    background: white;
}

.time-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow-x: auto;
    padding: 10px;
    border-radius: 10px;
}

.time-display span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-container {
    width: 128px;
    height: 128px;
    margin: 0 auto 20px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 
        0 0 0 4px white,
        0 0 0 6px rgba(44, 123, 229, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.tool-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: spin 10s linear infinite;
    position: relative;
    z-index: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.version-info {
    color: #2c7be5;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    background: rgba(44, 123, 229, 0.08);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 5px;
}

.login-body {
    padding: 30px 35px;
    background: white;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group label i {
    color: #2c7be5;
}

.input-container {
    position: relative;
}

#masterPassword {
    width: 100%;
    padding: 14px 50px 14px 15px;
    border: 2px solid #e0e6ff;
    border-radius: 10px;
    font-size: 1.05rem;
    background: #f8fbff;
    transition: all 0.3s;
    color: #344050;
    height: 52px;
}

#masterPassword:focus {
    border-color: #2c7be5;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.15);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1.2rem;
    transition: color 0.3s;
    background: transparent;
    border: none;
    outline: none;
}

.toggle-password:hover {
    color: #2c7be5;
}

.code-tips {
    color: #2c7be5;
    font-size: 0.85rem;
    text-align: center;
    margin: 8px 0 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background: rgba(44, 123, 229, 0.05);
    border-radius: 8px;
}

.security-tips {
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 12px;
    background: #fff9e6;
    border-radius: 8px;
    border: 1px solid #ffeeba;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn:active {
    transform: translateY(2px);
}

.btn-primary {
    background: linear-gradient(135deg, #2c7be5 0%, #1a68d1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 123, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a68d1 0%, #0d5ac0 100%);
    box-shadow: 0 6px 15px rgba(44, 123, 229, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f0ad4e 0%, #e89e3a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(240, 173, 78, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e89e3a 0%, #e08e28 100%);
    box-shadow: 0 6px 15px rgba(240, 173, 78, 0.4);
}

.footer {
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    color: #6c757d;
    border-top: 1px solid #eee;
    background: #f9fbfd;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .login-body {
        padding: 25px 20px;
    }
    
    .time-display {
        font-size: 0.95rem;
        gap: 12px;
    }
    
    .time-display span {
        font-size: 0.9rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 0.98rem;
        padding: 12px;
    }
}

@media (max-width: 400px) {
    .time-display {
        gap: 8px;
        font-size: 0.85rem;
    }
    
    .time-display span {
        font-size: 0.85rem;
    }
    
    .login-actions .btn span {
        display: none;
    }
    
    .login-actions .btn i {
        margin-right: 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header, .login-body, .footer {
    animation: fadeIn 0.6s ease-out forwards;
}

.login-header { animation-delay: 0.1s; }
.login-body { animation-delay: 0.3s; }
.footer { animation-delay: 0.5s; }