/* 认证页面样式 */
html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

#content {
    height: calc(100vh - 60px);
    width: 100vw;
    overflow: hidden;
    padding: 0 !important; 
}

.auth-container {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.desktop-footer {
    display:none
}
.auth-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    background-image: url('/theme_bookstack_cn/assets/login_1.png');
    background-size: cover;
    background-position: center;
}

.auth-image::after {
    content: '大梦敦煌 | 大漠敦煌，千里戈壁，万里尘烟';
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.auth-image img {
    display: none;
}

.auth-form {
    flex: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: left;
    padding-left: 5rem;
    background-color: #ffffff;
}

.form-content {
    width: 80%;
    max-width: 460px;
}

.auth-footer {
    display: none;
}

.auth-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333333;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

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

/* 蜜罐字段样式 */
.ambrosia-container {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* 复选框容器样式 */
.form-group .flex {
    display: flex !important;
    align-items: center !important;
}

.form-group .flex input[type="checkbox"] {
    margin-right: 8px !important;
    width: auto;
    margin-left: 0;
}

.form-group .flex label {
    display: inline-block !important;
    margin-bottom: 0 !important;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: #fff !important;
}

.form-group input:focus {
    outline: none;
    border-color: #666666;
    box-shadow: none;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.button.primary {
    background-color: var(--color-primary);
    color: #ffffff;
    width: 100%
}

.button.primary:hover {
    background-color: #0067dd;
}

.button.outline {
    background-color: transparent;
    border: 1px solid #e0e0e0;
    color: #333333;
}

.button.outline:hover {
    border-color: #07c160;
    color: #07c160;
}

/* 链接样式 */
a {
    color: #07c160;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #06b055;
    text-decoration: underline;
}

/* 天蓝色链接 */
.text-blue-500 {
    color: #3989df !important;
}

.text-blue-500:hover {
    color: #0059ce !important;
    text-decoration: underline !important;
}

/* 辅助文本 */
.text-small {
    font-size: 14px;
    color: #999999;
}

/* 网格布局 */
.grid {
    display: flex;
    gap: 16px !important;
}

.grid.half {
    flex-wrap: wrap;
}

.grid.half > * {
    flex: 1;
    min-width: calc(50% - 8px);
}

.v-center {
    align-items: center;
}

/* 间距 */
.mt-l {
    margin-top: 24px;
}

.mt-m {
    margin-top: 16px;
}

.ml-xs {
    margin-left: 8px;
}

/* 分隔线 */
hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
}

/* 页脚 */
.auth-footer {
    margin-top: 24px;
    font-size: 14px;
    color: #999999;
}

/* 深色模式支持 */
body.dark-mode .auth-form {
    background-color: #1a1a1a;
}

body.dark-mode .auth-title {
    color: #ffffff;
}

body.dark-mode .form-group label {
    color: #cccccc;
}

body.dark-mode .form-group input {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    color: #ffffff;
}

body.dark-mode .form-group input:focus {
    border-color: #07c160;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.2);
}

body.dark-mode .button.outline {
    border-color: #3a3a3a;
    color: #cccccc;
}

body.dark-mode .button.outline:hover {
    border-color: #07c160;
    color: #07c160;
}

body.dark-mode .text-small {
    color: #999999;
}

body.dark-mode hr {
    border-top-color: #3a3a3a;
}

body.dark-mode .auth-footer {
    color: #999999;
}