.security-main { padding: 0; }

/* Back link */
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; color: #64748b; font-weight: 500;
    text-decoration: none; margin-bottom: 28px; cursor: pointer; transition: color 0.2s;
}
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.back-link:hover { color: #a5b4fc; }

/* Page header */
.page-eyebrow {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 10px;
}
.page-title { font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.page-subtitle { font-size: 14px; color: #64748b; margin-bottom: 36px; }

/* Section cards */
.security-card {
    background: rgba(15,20,25,0.7);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 20px; padding: 36px 40px;
    margin-bottom: 24px;
    position: relative;
}

.card-section-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 18px; font-weight: 700; margin-bottom: 6px;
}
.card-section-title svg {
    width: 20px; height: 20px; fill: none; stroke: #8b5cf6;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.card-section-subtitle {
    font-size: 13px; color: #64748b; margin-bottom: 28px; padding-left: 32px;
}

/* Form elements */
.form-group { margin-bottom: 22px; }
.form-label {
    display: block; font-size: 13px; font-weight: 600;
    color: #cbd5e1; margin-bottom: 8px; letter-spacing: 0.3px;
}
.form-label span.required { color: #8b5cf6; margin-left: 3px; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon {
    position: absolute; left: 14px; pointer-events: none;
    display: flex; align-items: center;
}
.input-icon svg {
    width: 17px; height: 17px; fill: none; stroke: #64748b;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s;
}
.form-input {
    width: 100%;
    background: rgba(15,20,25,0.8); border: 1px solid rgba(99,102,241,0.25);
    border-radius: 10px; padding: 13px 44px 13px 44px;
    font-size: 15px; color: #ffffff; font-family: inherit; outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form-input.no-icon { padding-left: 16px; }
.form-input::placeholder { color: #475569; }
.form-input:focus {
    border-color: #6366f1; background: rgba(99,102,241,0.08);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.input-wrapper:focus-within .input-icon svg { stroke: #8b5cf6; }

/* Password toggle */
.pw-toggle {
    position: absolute; right: 14px; background: none; border: none;
    cursor: pointer; padding: 4px; display: flex; align-items: center;
}
.pw-toggle svg {
    width: 17px; height: 17px; fill: none; stroke: #64748b;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s;
}
.pw-toggle:hover svg { stroke: #8b5cf6; }

/* Password strength */
.strength-wrap { margin-top: 10px; display: none; }
.strength-wrap.visible { display: block; }
.strength-track {
    height: 4px; background: rgba(99,102,241,0.15);
    border-radius: 4px; overflow: hidden; margin-bottom: 6px;
}
.strength-fill {
    height: 100%; border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease; width: 0%;
}
.strength-text { font-size: 12px; color: #64748b; font-weight: 500; }

.form-hint { font-size: 12px; color: #475569; margin-top: 7px; }
.form-error { font-size: 12px; color: #ef4444; margin-top: 6px; display: none; }
.form-error.visible { display: block; }

/* Form divider */
.form-divider { height: 1px; background: rgba(99,102,241,0.15); margin: 24px 0; }

/* Action row */
.card-actions { display: flex; justify-content: flex-end; margin-top: 28px; }

.save-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    border: none; border-radius: 11px; padding: 13px 32px;
    color: #fff; font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all 0.25s;
    display: inline-flex; align-items: center; gap: 8px;
    position: relative; overflow: hidden;
}
.save-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
    opacity: 0; transition: opacity 0.25s;
}
.save-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(99,102,241,0.4); }
.save-btn:hover::after { opacity: 1; }
.save-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Toast */
.toast {
    position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
    border-radius: 12px; padding: 14px 24px;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600;
    opacity: 0; transition: all 0.35s; pointer-events: none; z-index: 9999;
}
.toast.success {
    background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #34d399;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }