/* ========================================
   极客交付 - 登录页样式
   PC端: 左品牌 + 右表单 双栏布局
   移动端: 单栏堆叠,表单在下
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.geek-login {
    min-height: 100vh;
    position: relative;
    background: #1a2a3a;
    color: #333;
    overflow-x: hidden;
}

/* ===== 背景层 ===== */
.geek-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url(../img/login-backgroundGK.jpg) no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.geek-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    /* background: linear-gradient(135deg, rgba(26, 42, 58, 0.75) 0%, rgba(41, 128, 185, 0.55) 50%, rgba(26, 42, 58, 0.65) 100%); */
    background: transparent;
    z-index: -1;
}

/* ===== 顶部导航 ===== */
.geek-header {
    position: relative;
    z-index: 10;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.geek-header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.geek-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.geek-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #207cca 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 87, 153, 0.4);
    letter-spacing: -1px;
}

.geek-logo-icon.big {
    width: 56px;
    height: 56px;
    font-size: 30px;
    border-radius: 14px;
}

.geek-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.geek-logo-text.big {
    font-size: 28px;
    font-weight: 700;
}

.geek-nav {
    display: flex;
    gap: 32px;
}

.geek-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.geek-nav-link:hover {
    color: #fff;
}

/* ===== 主体布局 ===== */
.geek-main {
    position: relative;
    z-index: 5;
    display: flex;
    min-height: calc(100vh - 64px - 50px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    gap: 60px;
    align-items: center;
}

/* ===== 左侧品牌区 ===== */
.geek-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.geek-brand-content {
    max-width: 560px;
}

.geek-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.geek-slogan {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.geek-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 48px;
    letter-spacing: 0.5px;
}

/* 功能特性 */
.geek-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
    margin-bottom: 48px;
}

.geek-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.geek-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.geek-feature-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.geek-feature-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 书法文案 */
.geek-calligraphy {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.geek-calligraphy-text {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-style: italic;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== 右侧登录表单 ===== */
.geek-login-section {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geek-login-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 42px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.geek-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.geek-login-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 8px;
}

.geek-login-header p {
    font-size: 14px;
    color: #7f8c9b;
}

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

.geek-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
}

.geek-input-wrap {
    position: relative;
}

.geek-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 15px;
    z-index: 2;
}

.geek-form-input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #e1e8ed;
    border-radius: 10px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.geek-form-input:focus {
    border-color: #2989d8;
    box-shadow: 0 0 0 3px rgba(41, 137, 216, 0.12);
}

.geek-form-input::placeholder {
    color: #b2bec3;
}

/* 验证码 */
.geek-captcha-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.geek-captcha-wrap .captcha-input {
    flex: 1;
}

.geek-captcha-img {
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid #e1e8ed;
    cursor: pointer;
    display: block;
}

/* 记住我 */
.geek-form-options {
    margin-bottom: 20px;
}

.geek-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #7f8c9b;
    user-select: none;
}

.geek-checkbox input[type="checkbox"] {
    display: none;
}

.geek-checkbox-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #bdc3c7;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.geek-checkbox input[type="checkbox"]:checked + .geek-checkbox-box {
    background: #2989d8;
    border-color: #2989d8;
}

.geek-checkbox input[type="checkbox"]:checked + .geek-checkbox-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 登录按钮 */
.geek-btn-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(41, 137, 216, 0.35);
    margin-top: 8px;
}

.geek-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(41, 137, 216, 0.5);
}

.geek-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(41, 137, 216, 0.3);
}

/* 表单底部 */
.geek-form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #95a5a6;
}

.geek-link {
    color: #2989d8;
    text-decoration: none;
    font-weight: 500;
}

.geek-link:hover {
    text-decoration: underline;
}

/* ===== 底部 ===== */
.geek-footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.geek-footer p {
    margin: 0;
}

/* ========================================
   响应式 - 平板 & 移动端
   ======================================== */

/* 平板 */
@media screen and (max-width: 1024px) {
    .geek-main {
        flex-direction: column;
        padding: 32px 24px;
        gap: 32px;
    }

    .geek-brand {
        text-align: center;
    }

    .geek-brand-content {
        max-width: 100%;
    }

    .geek-brand-logo {
        justify-content: center;
    }

    .geek-slogan {
        font-size: 32px;
    }

    .geek-features {
        max-width: 500px;
        margin: 0 auto 36px;
    }

    .geek-login-section {
        flex: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .geek-calligraphy {
        text-align: center;
        padding-left: 0;
        border-left: none;
        margin-top: 0;
    }
}

/* 手机 - 单栏堆叠,登录卡片优先 */
@media screen and (max-width: 768px) {
    .geek-header {
        padding: 0 16px;
        height: 50px;
    }

    .geek-nav {
        display: none;
    }

    .geek-logo-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
        border-radius: 7px;
    }

    .geek-logo-text {
        font-size: 15px;
    }

    .geek-main {
        flex-direction: column;
        padding: 16px 14px 10px;
        gap: 16px;
        min-height: auto;
    }

    /* 登录卡片排第一 */
    .geek-login-section {
        order: 1;
        flex: none;
        width: 100%;
        max-width: none;
    }

    .geek-login-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .geek-login-header {
        margin-bottom: 22px;
    }

    .geek-login-header h2 {
        font-size: 20px;
    }

    .geek-login-header p {
        font-size: 13px;
        margin-bottom: 0;
    }

    .geek-form-group {
        margin-bottom: 14px;
    }

    .geek-form-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .geek-form-input {
        height: 42px;
        font-size: 14px;
    }

    .geek-captcha-img {
        height: 42px;
    }

    .geek-btn-submit {
        height: 44px;
        font-size: 15px;
        letter-spacing: 3px;
    }

    /* 品牌区排第二,大幅压缩 */
    .geek-brand {
        order: 2;
        text-align: center;
        padding-top: 4px;
    }

    .geek-brand-logo {
        margin-bottom: 10px;
        justify-content: center;
    }

    .geek-logo-icon.big {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 10px;
    }

    .geek-logo-text.big {
        font-size: 18px;
    }

    .geek-slogan {
        font-size: 20px;
        margin-bottom: 6px;
        letter-spacing: 0;
    }

    .geek-subtitle {
        font-size: 13px;
        margin-bottom: 0;
    }

    /* 移动端隐藏 features 和书法文案 */
    .geek-features,
    .geek-calligraphy {
        display: none;
    }

    .geek-footer {
        padding: 10px 16px;
        font-size: 11px;
    }
}

/* 小屏手机 */
@media screen and (max-width: 480px) {
    .geek-main {
        padding: 12px 12px 8px;
        gap: 12px;
    }

    .geek-login-card {
        padding: 20px 16px;
    }

    .geek-form-input {
        height: 40px;
        font-size: 13px;
    }

    .geek-captcha-img {
        height: 40px;
    }

    .geek-btn-submit {
        height: 42px;
        font-size: 14px;
    }

    .geek-captcha-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .geek-slogan {
        font-size: 18px;
    }

    .geek-subtitle {
        font-size: 12px;
    }
}
