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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: fixed;
}

.container {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.logo-container {
    text-align: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.logo {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    display: block;
}

.brand-name {
    display: none;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    width: 100%;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.form-card.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card h2 {
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.subtitle {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.password-strength {
    height: 3px;
    border-radius: 2px;
    margin-top: 6px;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background: #ef4444;
    width: 33%;
}

.password-strength.medium {
    background: #f59e0b;
    width: 66%;
}

.password-strength.strong {
    background: #10b981;
    width: 100%;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #374151;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 6px;
    cursor: pointer;
}

.link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link:hover {
    color: #1565c0;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(25, 118, 210, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.form-footer {
    margin-top: 12px;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
}

.error-message {
    display: none;
    background: #fee2e2;
    color: #991b1b;
    padding: 8px 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 12px;
    border-left: 3px solid #ef4444;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.success-message {
    display: none;
    background: #d1fae5;
    color: #065f46;
    padding: 8px 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 12px;
    border-left: 3px solid #10b981;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .logo {
        width: 90px;
        height: 90px;
    }
    
    .form-card {
        padding: 15px 18px;
        border-radius: 10px;
    }
    
    .form-card h2 {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 11px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-height: 700px) {
    .logo {
        width: 90px;
        height: 90px;
    }
    
    .form-card {
        padding: 15px 18px;
    }
    
    .form-card h2 {
        font-size: 18px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
}
