/* register.css - Premium Google Material Design 3 Edition */

:root {
    --card-bg: var(--md-sys-color-surface);
    --card-border: var(--md-sys-color-outline-variant);
    --primary-color: var(--md-sys-color-primary);
    --text-primary: var(--md-sys-color-on-surface);
    --text-secondary: var(--md-sys-color-on-surface-variant);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--surface-grey);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
}

.register-layout {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 24px;
    animation: fadeIn 0.8s var(--easing-std);
}

.register-card {
    width: 100%;
    max-width: 560px;
    /* Slightly wider for multi-step */
    background: var(--surface-white);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 56px 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.headline-large {
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 40px;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.body-medium {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* Progress Bar MD3 */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: var(--google-blue-container);
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.5s var(--easing-std);
}

/* Form Styling */
.form-step {
    animation: fadeIn 0.4s var(--easing-std);
}

.form-input {
    border-radius: 12px !important;
    height: 56px;
    background-color: var(--surface-grey) !important;
    border: 1px solid transparent !important;
}

.form-input:focus {
    background-color: var(--surface-white) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 0 15px !important;
}

select.form-input {
    padding-top: 0 !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 -960 960 960' width='24'%3E%3Cpath d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    user-select: none;
    font-size: 22px !important;
    z-index: 5;
}

/* Strength Meter */
.strength-meter {
    margin-top: 8px;
    transition: all 0.3s ease;
}

.strength-bar {
    height: 6px;
    background: var(--surface-grey);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-bar .fill {
    height: 100%;
    width: 0;
    transition: all 0.5s var(--easing-std);
}

.strength-weak .fill {
    width: 33%;
    background-color: var(--google-red);
}

.strength-medium .fill {
    width: 66%;
    background-color: var(--google-yellow);
}

.strength-strong .fill {
    width: 100%;
    background-color: var(--google-green);
}

/* Buttons */
.btn {
    height: 48px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-outline {
    border-color: var(--card-border);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .register-card {
        padding: 40px 24px;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
}