* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.background-decoration::before,
.background-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.background-decoration::before {
    width: 400px;
    height: 400px;
    background: #07C160;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.background-decoration::after {
    width: 300px;
    height: 300px;
    background: #05a050;
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 440px;
    max-height: 100vh;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar */
.container::-webkit-scrollbar {
    width: 6px;
}

.container::-webkit-scrollbar-track {
    background: transparent;
}

.container::-webkit-scrollbar-thumb {
    background: rgba(7, 193, 96, 0.3);
    border-radius: 3px;
}

.container::-webkit-scrollbar-thumb:hover {
    background: rgba(7, 193, 96, 0.5);
}

.register-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 30px 25px;
    box-shadow: 0 10px 40px rgba(7, 193, 96, 0.12), 
                0 2px 8px rgba(0, 0, 0, 0.04);
    animation: fadeIn 0.6s ease-in-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 10px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo-icon {
    margin-bottom: 12px;
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo-icon svg {
    width: 60px;
    height: 60px;
}

@keyframes scaleIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.logo h1 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.logo .subtitle {
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

/* Form row - 2 columns */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4a4a4a;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group label svg {
    color: #07C160;
    opacity: 0.8;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    padding-right: 42px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.25s ease;
    outline: none;
    background: #f8f9fa;
    color: #2c3e50;
    font-family: inherit;
}

.form-group input:hover {
    border-color: #d0d0d0;
}

.form-group input:focus {
    border-color: #07C160;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.08);
    transform: translateY(-1px);
}

.form-group input.valid {
    border-color: #07C160;
    background: #f0fdf4;
}

.form-group input.error {
    border-color: #ff3b30;
    background: #fff5f5;
}

.form-group input::placeholder {
    color: #a8a8a8;
    font-weight: 400;
}

.form-group input[type="date"] {
    color: #4a4a4a;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Input icons */
.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-icon.success-icon {
    color: #07C160;
    font-weight: bold;
    font-size: 18px;
}

.form-group input.valid ~ .input-icon.success-icon {
    opacity: 1;
}

/* Toggle password button */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8a8a8a;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}

.toggle-password:hover {
    color: #07C160;
}

.toggle-password .eye-icon {
    display: block;
}

/* Help text */
.help-text {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0;
    margin-bottom: 16px;
}

.strength-bar {
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #ddd;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: #ff3b30;
}

.strength-fill.medium {
    width: 66%;
    background: #ff9500;
}

.strength-fill.strong {
    width: 100%;
    background: #07C160;
}

.strength-text {
    font-size: 12px;
    color: #8a8a8a;
    font-weight: 500;
}

.strength-text.weak { color: #ff3b30; }
.strength-text.medium { color: #ff9500; }
.strength-text.strong { color: #07C160; }

/* Form options (remember me + forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.remember-me {
    margin: 0;
}

.forgot-password {
    font-size: 13px;
    white-space: nowrap;
}

/* Checkbox group */
.checkbox-group {
    margin-bottom: 18px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #6a6a6a;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    min-width: 20px;
    height: 20px;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.checkbox-label:hover .checkmark {
    border-color: #07C160;
    background-color: rgba(7, 193, 96, 0.05);
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #07C160;
    border-color: #07C160;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-text {
    padding-top: 1px;
}

/* Buttons */
.btn-register {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #07C160 0%, #05a050 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    background: linear-gradient(135deg, #06ad56 0%, #048f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.35);
}

.btn-register:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(7, 193, 96, 0.3);
}

.btn-register:disabled {
    background: #c0c0c0;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.btn-register.loading .btn-text {
    display: none;
}

.btn-register.loading .btn-loading {
    display: block;
}

.spinner {
    animation: rotate 1s linear infinite;
}

.spinner .path {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}



/* Links */
.link {
    color: #07C160;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: #06ad56;
    text-decoration: underline;
}

.link-primary {
    color: #07C160;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.link-primary:hover {
    color: #06ad56;
    text-decoration: underline;
}

.login-link {
    text-align: center;
    margin-top: 16px;
    color: #7a7a7a;
    font-size: 14px;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        max-height: 100vh;
    }

    .register-box {
        padding: 25px 20px 20px;
        border-radius: 16px;
        margin: 5px 0;
    }

    .logo-icon svg {
        width: 55px;
        height: 55px;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    .logo h1 {
        font-size: 22px;
    }

    .logo .subtitle {
        font-size: 12px;
    }

    /* Stack columns on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 7px;
    }
    
    .form-group input {
        padding: 10px 12px;
        padding-right: 38px;
        font-size: 14px;
    }
    
    .btn-register {
        padding: 12px;
        font-size: 14px;
    }

    .checkbox-label {
        font-size: 12px;
    }
}

@media (max-height: 700px) {
    .logo {
        margin-bottom: 18px;
    }

    .logo-icon svg {
        width: 50px;
        height: 50px;
    }

    .form-row {
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .checkbox-group {
        margin-bottom: 14px;
    }

    .password-strength {
        margin-bottom: 12px;
    }
}

/* Error and Success messages */
.error-message {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: flex;
    align-items: center;
    gap: 4px;
    animation: shake 0.3s ease-in-out;
}

.error-message.show::before {
    content: '⚠';
    font-size: 13px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Success message */
.success-message {
    background: linear-gradient(135deg, #e8f5e9 0%, #f0fdf4 100%);
    color: #07C160;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
    display: none;
    border: 2px solid #07C160;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.15);
}

.success-message.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeIn 0.5s ease-in-out;
}

.success-message.show::before {
    content: '✓';
    font-size: 20px;
    font-weight: bold;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step.active .step-circle {
    background: #07C160;
    color: white;
    border-color: #05a050;
    box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.2);
}

.step-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.step.active .step-label {
    color: #07C160;
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
    margin-bottom: 30px;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

/* Verification Methods */
.verification-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.method-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.method-card:hover {
    border-color: #07C160;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.15);
}

.method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.method-card input[type="radio"]:checked + label {
    color: #07C160;
}

.method-card input[type="radio"]:checked ~ label .method-icon {
    background: #e8f5e9;
    color: #07C160;
}

.method-card.selected {
    border-color: #07C160;
    background: #f1f9f3;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.15);
}

.method-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    cursor: pointer;
}

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.method-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.method-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Back Button */
.btn-back {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-back:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 30px 20px;
    animation: fadeInScale 0.5s ease;
}

.success-icon-large {
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #07C160;
    margin-bottom: 10px;
}

.success-message {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.help-text {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    line-height: 1.4;
}

/* Responsive for smaller verification methods */
@media (max-width: 480px) {
    .verification-methods {
        grid-template-columns: 1fr;
    }
    
    .step-line {
        width: 40px;
    }
    
    .step-label {
        font-size: 11px;
    }
}
