:root {
    --brand-1: #0d6efd;
    --brand-2: #6f42c1;
    --text-dark: #1f2937;
    --text-soft: #6b7280;
    --card-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 13px;
    color: var(--text-dark);
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 24px 32px 24px;
    overflow: visible;
}

.change-card {
    width: 100%;
    max-width: 1050px;
    border: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #fff;
    margin: 0 auto;
}

.left-panel {
    background:
        linear-gradient(160deg, rgba(13,110,253,0.95), rgba(111,66,193,0.92)),
        linear-gradient(45deg, #0d6efd, #6f42c1);
    color: #fff;
    position: relative;
    padding: 28px 30px 32px 30px;
    min-height: 100%;
}

.left-panel::before,
.left-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.09);
}

.left-panel::before {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -70px;
}

.left-panel::after {
    width: 160px;
    height: 160px;
    bottom: -50px;
    left: -50px;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    margin: 0 auto 20px auto;
    max-width: 250px;
    position: relative;
    z-index: 2;
}

.logo-box img {
    display: block;
    max-height: 72px;
    width: auto;
    max-width: 100%;
}

.left-panel h1 {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.left-panel p {
    color: rgba(255,255,255,0.88);
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

.feature-list {
    margin-top: 20px;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 2;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.95);
    font-size: 0.88rem;
}

.feature-list i {
    font-size: 1rem;
}

.right-panel {
    padding: 28px 32px;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(8px);
    position: relative;
}

.form-title {
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-subtitle {
    color: var(--text-soft);
    margin-bottom: 16px;
    font-size: 0.88rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.input-group-text {
    background: #fff;
    border-right: 0;
}

.form-control,
.form-select {
    font-size: 0.88rem;
    border-color: #dbe3ef;
}

.form-control {
    border-left: 0;
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
}

.form-select {
    border-left: 0;
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
}

.form-control,
.input-group-text,
.toggle-password {
    border-color: #dbe3ef;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #86b7fe;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .toggle-password {
    border-color: #86b7fe;
}

.toggle-password {
    cursor: pointer;
    border-left: 0;
    background: #fff;
}

.password-rules {
    background: #f8fafc;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    padding: 12px 14px;
    margin-top: 14px;
}

.password-rules-title {
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.rule-item.ok {
    color: #198754;
}

.rule-item i {
    font-size: 0.92rem;
}

.btn-save {
    border: 0;
    border-radius: 14px;
    padding: 0.78rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    box-shadow: 0 12px 24px rgba(13,110,253,0.22);
}

.btn-save:hover {
    opacity: 0.96;
}

.security-note {
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-top: 12px;
}

.footer-note {
    text-align: center;
    color: #748094;
    font-size: 0.76rem;
    margin-top: 10px;
}

.language-switch {
    position: absolute;
    top: 16px;
    right: 20px;
}

.language-switch img {
    width: 20px;
    margin-left: 8px;
    cursor: pointer;
    border-radius: 2px;
    transition: transform 0.15s;
}

.language-switch img:hover {
    transform: scale(1.08);
}

.password-rules-left {
    margin-top: 22px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
}

.password-rules-left .password-rules-title {
    color: #fff;
}

.password-rules-left .rule-item {
    color: rgba(255,255,255,0.92);
}

.password-rules-left .rule-item.ok {
    color: #3cff8f;
}

@media (max-width: 991.98px) {
    body {
        overflow: auto;
    }

    .page-wrap {
        min-height: auto;
        padding: 10px;
        overflow: visible;
    }

    .change-card {
        max-width: 100%;
        border-radius: 20px;
    }

    .left-panel,
    .right-panel {
        padding: 22px 18px;
    }

    .left-panel h1 {
        font-size: 1.4rem;
    }

    .logo-box {
        padding: 12px 18px;
        margin: 0 auto 18px auto;
        max-width: 230px;
    }

    .logo-box img {
        max-height: 66px;
    }
}

@media (max-width: 767.98px) {
    .form-title {
        font-size: 1.15rem;
    }

    .form-subtitle {
        margin-bottom: 14px;
    }

    .left-panel p {
        font-size: 0.84rem;
    }

    .password-rules {
        padding: 10px 12px;
    }
}