@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Prompt', "Segoe UI", Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 60%);
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.brand {
    color: #0f172a;
    margin-bottom: 24px;
    text-align: center;
}

.brand h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    text-shadow: none;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.step-tag {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    margin-bottom: 12px;
}

h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-weight: 500;
}

.muted {
    margin: 0 0 20px;
    color: #64748b;
    line-height: 1.5;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert.success {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.alert.error {
    background: #fef2f2;
    color: #be123c;
    border-color: #fecdd3;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    border: 0;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.rules {
    margin-top: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    color: #475569;
}

.rules ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.rule-item {
    transition: color 0.2s ease;
}

.rule-invalid {
    color: #dc2626;
}

.rule-valid {
    color: #16a34a;
}

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

.password-input-wrap input[type="password"],
.password-input-wrap input[type="text"] {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0;
    width: auto;
    height: auto;
    background: transparent;
    cursor: pointer;
    color: #475569;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    background: transparent;
    color: #334155;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.toggle-password .icon-eye-off {
    display: none;
}

.toggle-password.is-visible .icon-eye {
    display: none;
}

.toggle-password.is-visible .icon-eye-off {
    display: inline-flex;
}

.meta {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}

.code {
    font-family: "Consolas", "Monaco", monospace;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 2px 6px;
    color: #334155;
}

.footer-contact {
    margin-top: 32px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact p {
    margin: 4px 0;
}

.footer-contact strong {
    color: #334155;
    font-weight: 500;
    font-size: 15px;
}
