/* Reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 440px;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    padding: 40px 30px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    color: #7f8c8d;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step.active {
    display: block;
    opacity: 1;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px; /* space for eye icon */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    width: 24px;
    height: 24px;
    fill: #7f8c8d;
    transition: fill 0.2s;
}

.toggle-password:hover .eye-icon {
    fill: #2c3e50;
}

.password-rules {
    font-size: 12px;
    color: #e67e22;
    background: #fdf2e9;
    padding: 10px;
    border-radius: 8px;
    margin: -10px 0 20px;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 5px;
}

.btn-primary {
    background: #667eea;