/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f3f4f6; /* gray-100 */
    color: #374151; /* gray-700 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container Card */
.auth-container {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 24rem; /* w-96 */
    font-size: 0.875rem; /* text-sm */
}

/* Typography */
.hero-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
}

.hero-subtitle {
    color: #4b5563;
    margin-top: 0.5rem;
}

.intro-text {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #374151;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Inputs & Form */
.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    display: block;
}

.password-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.password-wrapper .form-input {
    padding-right: 4rem;
    margin-bottom: 0;
}

.toggle-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4b5563;
    cursor: pointer;
    font-size: 0.875rem;
}

.warning-text {
    color: #ef4444;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.terms-text {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.terms-text a, .login-link a {
    color: #2563eb;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background-color: #16a34a; /* green-600 */
    color: white;
    padding: 0.5rem 0;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #15803d; /* green-700 */
}

.login-link {
    text-align: center;
    margin-top: 0.75rem;
}

/* Strength Meter */
.strength-meter-container {
    margin-bottom: 0.75rem;
}

.strength-bg {
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
}

.strength-bar {
    height: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-bar.weak { background-color: #ef4444; }
.strength-bar.medium { background-color: #f59e0b; }
.strength-bar.strong { background-color: #16a34a; }

.strength-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.text-weak { color: #ef4444; }
.text-medium { color: #d97706; }
.text-strong { color: #16a34a; }

/* Overlay & Spinner */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.hidden { display: none; }

.spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border-top: 4px solid #22c55e;
    border-right: 4px solid transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Responsiveness */
@media (max-width: 480px) {
    .auth-container {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
}