/* Reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700;800&family=Manrope:wght@400;500;600;700&display=swap');

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(900px 420px at 0% 0%, rgba(119, 185, 1, 0.16), transparent 60%),
        #000000;
    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;
    border-top: 5px solid #77B901;
    animation: fadeInUp 0.5s ease;
}

.card .brand-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 22px;
}

h1 {
    font-family: 'Exo 2', 'Manrope', 'Segoe UI', sans-serif;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 28px;
    color: #363636;
    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: #363636;
    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: #77B901;
    box-shadow: 0 0 0 3px rgba(119, 185, 1,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: #363636;
}

.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: #77B901;
    color: #000000;
}

.btn-primary:hover {
    background: #5E9300;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn:focus-visible,
.login-link a:focus-visible {
    outline: 3px solid #77B901;
    outline-offset: 2px;
}

.message {
    min-height: 1.2em;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.login-link {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.login-link a {
    color: #393BD6;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}
