/* 登录页面专用样式 */

/* 整体容器 */
.login-container {
    min-height: 80vh;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* 登录表单包装器 */
.login-form-wrapper {
    width: 41.69rem;
    max-width: 450px;
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 10;
}

/* 登录表单 */
.login-form {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* Logo区域 */
.logo-section h2 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

/* 登录标签 */
.login-tabs {
    margin-bottom: 1.5rem;
}

.login-tabs .nav-tabs {
    gap: 0.5rem;
}

.login-tab, .signup-tab {
    /*border: 1px solid #e9ecef !important;*/
    /*border-radius: 0.5rem !important;*/
    padding: 0.35rem 1.5rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
    /*background: white;*/
    /*color: #6c757d;*/
}
/*.signup-tab:hover,*/
/*.login-tab.active {*/
/*    background: var(--custom-primary) !important;*/
/*    color: white !important;*/
/*    border-color: var(--custom-primary) !important;*/
/*}*/

/* 问候语 */
.greeting h3 {
    font-size: 1.5rem;
    color: #212529;
    margin-bottom: 0.5rem;
}

/* 会员提示 */
.member-prompt {
    font-size: 0.95rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-control:focus {
    border-color: var(--custom-primary);
    box-shadow: 0 0 0 0.2rem rgba(31, 111, 245, 0.15);
    background-color: white;
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* 密码输入框包装器 */
.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    /*background: none;*/
    /*border: 1px solid #e9ecef;*/
    /*color: #6c757d;*/
    /*font-size: 1.0rem;*/
    /*cursor: pointer;*/
    /*padding: 0 1rem;*/
    /*min-width: 50px;*/
    /*height: 30px;*/
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    /*transition: color 0.3s ease;*/
    /*border-color: var(--custom-primary);*/
    /*border-radius: 0.25rem;*/
}

/*.password-toggle-btn:hover {*/
/*    color: var(--custom-primary);*/
/*}*/

/* 表单选项 */
.form-options {
    font-size: 0.9rem;
}

.form-check-input {
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    width: 1rem;
    height: 1rem;
}

.form-check-input:checked {
    background-color: var(--custom-primary);
    border-color: var(--custom-primary);
}

.form-check-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

/* 登录按钮 */
.login-btn {
    background: var(--custom-primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 111, 245, 0.3);
}

.login-btn:hover {
    background: #1a5fd4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 111, 245, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* 右侧图片区域 - 现在作为背景层 */
.login-image-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

/* 房屋图片占位符 */
.house-image{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
}
.house-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-right: 10%;
}


/* 响应式设计 */
@media (max-width: 991.98px) {
    .login-form-wrapper {
        padding: 1rem;
        left: 2%;
        max-width: 350px;
    }
    
    .login-form {
        padding: 2rem;
    }
    
    .greeting h3 {
        font-size: 1.25rem;
    }
    
    .house-placeholder {
        justify-content: center;
        padding-right: 0;
    }
    
    .house {
        width: 250px;
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .login-form {
        padding: 1.5rem;
        margin: 0;
    }
    
    .login-form-wrapper {
        padding: 0.5rem;
        left: 1%;
        right: 1%;
        max-width: none;
        width: auto;
    }
    
    .logo-section h2 {
        font-size: 1.5rem;
    }
    
    .greeting h3 {
        font-size: 1.1rem;
    }
    
    .house {
        width: 200px;
        height: 150px;
    }
    
    .house-body {
        width: 150px;
        height: 100px;
        left: 25px;
    }
    
    .house-roof {
        border-left: 100px solid transparent;
        border-right: 100px solid transparent;
        border-bottom: 60px solid #696969;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    animation: fadeInUp 0.6s ease-out;
}

/* 链接悬停效果 */
a:hover {
    text-decoration: underline !important;
}

/* 表单验证样式 */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

/* 加载状态 */
.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 焦点可访问性 */
/*.form-control:focus,*/
/*.login-btn:focus,*/
/*.password-toggle-btn:focus {*/
/*    outline: 2px solid var(--custom-primary);*/
/*    outline-offset: 2px;*/
/*}*/
