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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
}

.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    padding: 40px 16px;
}

.login-box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 40px 40px 32px;
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    font-size: 1.25em;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 4px;
}

.login-box .client-name {
    font-size: 0.85em;
    color: #7d8590;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85em;
    color: #7d8590;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    font-size: 1em;
    outline: none;
    transition: border-color 0.15s;
}

.form-group input:focus {
    border-color: #4a9eff;
}

.btn-primary {
    width: 100%;
    padding: 11px;
    background: #1f6feb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 8px;
}

.btn-primary:hover { background: #388bfd; }

.alert-error {
    background: #3d1a1a;
    border: 1px solid #6d2828;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.875em;
    color: #f87171;
    margin-bottom: 20px;
}

.login-footer {
    text-align: center;
    font-size: 0.75em;
    color: #484f58;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #21262d;
}

.input-wrap {
    position: relative;
}
.input-wrap input {
    padding-right: 42px;
}
.pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #7d8590;
    padding: 0;
    line-height: 0;
}
.pwd-toggle:hover { color: #c9d1d9; }

/* ── Profile page ──────────────────────────────────────────────────── */

.profile-wrap {
    display: flex;
    justify-content: center;
    padding: 48px 16px 64px;
}
.profile-box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 36px 40px;
    width: 100%;
    max-width: 520px;
}
.profile-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}
.profile-top h1 {
    font-size: 1.25em;
    font-weight: 600;
    color: #e6edf3;
}
.profile-back {
    font-size: 0.85em;
    color: #4a9eff;
    text-decoration: none;
}
.profile-back:hover { text-decoration: underline; }
.profile-section { margin-bottom: 32px; }
.profile-section h2 {
    font-size: 0.875em;
    font-weight: 600;
    color: #7d8590;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #21262d;
}
.alert-ok {
    background: #0f2a1a;
    border: 1px solid #1a5c2a;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.875em;
    color: #4ade80;
    margin-bottom: 20px;
}
.profile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.profile-row .form-group { margin-bottom: 14px; }
.profile-error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 16px;
}
.profile-error-msg {
    font-size: 0.95em;
    color: #f87171;
    max-width: 400px;
}
